ConnectionFactory:
Name: MyConnectionFactory.
JNDI Name: MyConnectionFactory.
In the targets tab I selected the server name.
Queue:
Name: MyJMSQueue.
JNDIName: weblogic.jms.MyJMSQueue.
The client is the same as given by WL6.1 as the samples code.
During the lookup for the queue name I am getting an error. The stack trace
of the same is given below.
code line :
Queue newQueue = (Queue) m_context.lookup("MyJMSQueue");
where, m_context-> initial context.
I would appreciate if some one can help me in this.
Thanks and regards,
Navin.
----------------------------------------------------------------------------
------
weblogic.jms.common.JMSException: Invalid destination name: weblogic.jms.MyJ
MSQueue
at
weblogic.jms.frontend.FEManager.destinationCreate(FEManager.java:148)
at weblogic.jms.frontend.FEManager.invoke(FEManager.java:317)
at
weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.jav
a:504)
at
weblogic.jms.dispatcher.DispatcherImpl.dispatchAsync(DispatcherImpl.j
ava:149)
at
weblogic.jms.dispatcher.DispatcherImpl.dispatchSyncNoTranFuture(Dispa
tcherImpl.java:358)
at weblogic.jms.dispatcher.DispatcherImpl_WLSkel.invoke(Unknown
Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:296)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:265)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
End server side stack trace
Note that your code also fails to use the queue's JNDI name for the (context)
lookup.
Tom