Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS remote LOOKUP

 
maha laxmi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
maha laxmi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you trying to do something with a remote connection factory. See if these help:

IGetJavax.jms.InvalidDestinationException.ThisDestinationDoesNotExist

HowDoIConfigureTheJMSResourceAdapterToUseARemoteConnectionFactory
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic