I would like to use the jndi queue name instead of the queue url in
synapse.xml for a JMS listener proxy. When specifying the JNDI name for
property transport.jms.Destination, it seems to map it successfully
against the queue channel:
2008-12-17 11:40:45,670 [7.28.130.231-wh24cu6052] [WrapperSimpleAppMain]
INFO JMSConnectionFactory Mapped JNDI name : SampleQueue and JMS
Destination name : queue:// MQ_SERVER/SAMPLE_QUEUE against service :
MsgListener
But now I get this error:
Exception in thread "jms-Worker-1" java.lang.NullPointerException
at
org.apache.synapse.transport.base.BaseUtils.handleLegacyMessage(BaseUtil
s.java:298)
at
org.apache.synapse.transport.base.BaseUtils.setSOAPEnvelope(BaseUtils.ja
va:259)
at
org.apache.synapse.transport.jms.JMSMessageReceiver$Worker.run(JMSMessag
eReceiver.java:216)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto
r.java:665)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
va:690)
at java.lang.Thread.run(Thread.java:810)
The above error goes away if I set the value of
transport.jms.Destination to "queue://MQ_SERVER/SAMPLE_QUEUE" instead of
the JNDI name "SampleQueue", any idea of why this happens ?
remsy
_______________________________________________
Esb-java-user mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/esb-java-user