I looked up the QueueConnectionFactory.
Created a QueueConnection.
Created QueueSession.
Now I tried to create a Queue using the
QueueSession.createQueue(queueName).
This does not work and throws an exception.
The full stack trace is
org.jboss.mq.SpyJMSException: Cannot get the Queue from
the provider
at
org.jboss.mq.SpyConnection.createQueue(SpyConnection.java:189)
at
org.jboss.mq.SpyQueueSession.createQueue(SpyQueueSession.java:92)
at
com.adventnet.itcf.transport.jms.JMSUtil.createSession(JMSUtil.java:60)
at
com.adventnet.itcf.transport.jms.JMSClientUtil.startDistributor(JMSClientUtil.java:21)
at
com.adventnet.itcf.transport.jms.JMSTransportClient.<init>(JMSTransportClient.java:36)
at
com.adventnet.itcf.transport.jms.JMSTransportClient.<clinit>(JMSTransportClient.java:21)
at
com.adventnet.itcf.start.ClientStartUp.startITCFClient(ClientStartUp.java:50)
at com.Test.main(Test.java:32)
linked exception is:
javax.jms.JMSException: This destination does not
exist !
at
org.jboss.mq.server.JMSDestinationManager.createQueue(JMSDestinationManager.java:684)
at
org.jboss.mq.server.JMSServerInvoker.createQueue(JMSServerInvoker.java:150)
at
org.jboss.mq.il.uil.UILServerILService.run(UILServerILService.java:263)
at java.lang.Thread.run(Thread.java:536)
linked exception is:
javax.jms.JMSException: This destination does not
exist !
at
org.jboss.mq.server.JMSDestinationManager.createQueue(JMSDestinationManager.java:684)
at
org.jboss.mq.server.JMSServerInvoker.createQueue(JMSServerInvoker.java:150)
at
org.jboss.mq.il.uil.UILServerILService.run(UILServerILService.java:263)
at java.lang.Thread.run(Thread.java:536)
--E.Sriram
Logged In: YES
user_id=9459
Read the javadocs for
QueueSession.createQueue(String)
This method does not create queues,
it is an alternate method for creating a javax.jms.Queue object
using the "Provider specific name".
The physical queue must already exist.
Regards,
Adrian