Thank you, i'll try to get a solution with ur help.
Here is the client am am working at:
jndiContext = new InitialContext(System.getProperties());
  | connectionFactory = (TopicConnectionFactory) 
  | jndiContext.lookup("javax.jms.TopicFactory");               
  | connection = connectionFactory.createTopicConnection();             
  | session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
  | topic = (Topic) jndiContext.lookup("queue/MyQueue");
  | sender = session.createPublisher(topic);
  | message = session.createTextMessage("BLAH BLAH BLAH");
  | sender.publish(message);
  | connection.close();

And here my describtor jboss-service.xml.

  | <?xml version="1.0" encoding="UTF-8"?> 
  | <jboss>
  |     <enterprise-beans>
  |             <message-driven>
  |                     <display-name>SimpleMessageEJB</display-name>
  |                     <ejb-name>SimpleMessageEJB</ejb-name>
  |                     <ejb-class>xample.mdb.SimpleMessageBean</ejb-class>            
         
  |                     <destination-jndi-name>queue/MyQueue</destination-jndi-name>
  |             </message-driven>
  |     </enterprise-beans>
  | </jboss>
  | 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823080#3823080

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823080


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to