Announcement Announcement Module
Collapse
No announcement yet.
JMSSender and jndi queue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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="org.springframework.ws.soap.saaj.SaajSoapMe ssageFactory"/>


    <bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServi ceTemplate">
    <constructor-arg ref="messageFactory"/>
    <property name="messageSender">
    <bean class="org.springframework.ws.transport.jms.JmsMes sageSender">
    <property name="connectionFactory" ref="queueConnectionFactory"/>
    </bean>
    </property>
    <property name="defaultUri" value="jms:requestQueue"/>
    </bean>


    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,

    Illizi
Working...
X