|
|
I am using the WebServiceTemplate to do SOAP requests. JMS is used as transport. queue connection factory and request Queue are configured in the application server. The jndi lookup is used to get a reference to connectionFactory and request queue like this:
lt;jee:jndi-lookup id=quot;myRequestQueuequot; jndi-name=quot;jms/requestQueuequot;/gt;
lt;jee:jndi-lookup id=quot;queueConnectionFactoryquot; jndi-name=quot;theConnectionFactoryquot;/gt;
This is how the rest of configuration looks like.
lt;bean id=quot;messageFactoryquot; class=quot;org..ws.soap.saaj.SaajSoapMe ssageFactoryquot;/gt;
lt;bean id=quot;webServiceTemplatequot; class=quot;org..ws.client.core.WebServi ceTemplatequot;gt; lt;constructor-arg ref=quot;messageFactoryquot;/gt; lt;property name=quot;messageSenderquot;gt;lt;bean class=quot;org..ws.transport.jms.JmsMes sageSenderquot;gt; lt;property name=quot;connectionFactoryquot; ref=quot;queueConnectionFactoryquot;/gt;lt;/beangt; lt;/propertygt; lt;property name=quot;defaultUriquot; value=quot;jms:requestQueuequot;/gt; lt;/beangt;I want in the webServiceTemplate to use the queue quot;myRequestQueuequot; from the jndi lookup instead of using the queue name as a default uri. Is there any solution for this or a workaround?
Kind regards,
Illizi |
|