This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JMS remote LOOKUP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JMS remote LOOKUP" Watch "JMS remote LOOKUP" New topic
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: 17249
    
    6

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: 9960
    
163

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JMS remote LOOKUP
 
Similar Threads
JBOSSEAP4.3 default fresh server showing startup errors.
JBoss Startup issue
Error While Starting JBoss 5.1.0 GA!!!
Help on Topic in JMS
JBOSS error invalid column index while server startup