Announcement Announcement Module
No announcement yet.
JMSSender and jndi queue Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • JMSSender and jndi queue

    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:
    <jee:jndi-lookup id="myRequestQueue" jndi-name="jms/requestQueue"/>
    <jee:jndi-lookup id="queueConnectionFactory" jndi-name="theConnectionFactory"/>

    This is how the rest of configuration looks like.

    <bean id="messageFactory" class=" ssageFactory"/>

    <bean id="webServiceTemplate" class=" ceTemplate">
    <constructor-arg ref="messageFactory"/>
    <property name="messageSender">
    <bean class=" sageSender">
    <property name="connectionFactory" ref="queueConnectionFactory"/>
    <property name="defaultUri" value="jms:requestQueue"/>

    I want in the webServiceTemplate to use the queue "myRequestQueue" 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,