Author
JMS remote LOOKUP
maha laxmi
Ranch Hand
Joined: Sep 23, 2005
Posts: 68
followed this url and deployed new new messaging instance http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingBuildInstructions i created mdb.ear and deployed in the mesaging instance.my requirement is i am trying to lookup remote queue; i followed below url for scoped ear for Remote Messaging Instance. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUser_Deploying_a_scoped_MDB_container mdb.ear was deployed with no errors in messaging instance . in mesaging instance in directory jboss-messaging.sar i changed destinations-service.xml to create new queue(testQueue); below in jms-ds.xml in messaging instance; Code: in messaging instance only i changed standardjboss.xml **************************************************** Code: in the corresponding mdb.ear i changed jboss.xml ******************************** Code: client code is in default instance Code: I am getting JmsXA not bound exception(what is the right way of look up ?) when i changed from JmsXA to java :/XAConnectionFactory i am getting queueFactory but i am getting below exception. Code: see my messaging instance log file Code:
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 17225
posted Dec 14, 2006 10:01:00
0
I thought for JMS all you needed to do was declare your Queue in the destinations xml file in the JMS folder, then deploy your MDB. On the client side look up the ConnectionFactory , find the Queue through the factory (so to speak), then send a message? I think you changed some of the core JBoss xml files like standardjboss.xml, which you should not really touch at all. Let me know if I am missing something here. Thanks Mark
Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
maha laxmi
Ranch Hand
Joined: Sep 23, 2005
Posts: 68
"i thought for JMS all you needed to do was declare your Queue in the destinations xml file in the JMS folder, then deploy your MDB" are you talking about this destinations-service.xml file. anyway queue is coming correctly.while sending the messages do to the queue i am getting exception. this is the log file i am getting;
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8141
Looks like you trying to do something with a remote connection factory. See if these help: IGetJavax.jms.InvalidDestinationException.ThisDestinationDoesNotExist HowDoIConfigureTheJMSResourceAdapterToUseARemoteConnectionFactory
[My Blog ] [JavaRanch Journal ]
subject: JMS remote LOOKUP