• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS remote LOOKUP

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic