I have deployed the SampleQueue in Machine A and trying to look-up from a 
servlet deployed on Machine B

I have made the following entry in jbossmq-destinations-service.xml

  mbean code="org.jboss.mq.server.jmx.Queue"
         name="jboss.mq.destination:service=Queue,name=SampleQueue"
  /mbean


Is this right?

The same code works for a stand-alone program!!. 
However, it fails in the servlet deployed in another JBOSS 4.0.2.


Also attached is the System.outs.

Got the queue 1 [ This is after looking up the queue ]
Adding Text       [ This is when creating the textmessage ]
Sending the message to SampleQueue  [ This is just before the call 
queueSender.send(outMessage) ]

And I get this exception soon after that!javax.jms.InvalidDestinationException: 
This destination does not exist! QUEUE.SampleQueue




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

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


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to