Announcement Announcement Module
No announcement yet.
Asynchronous JMS call Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Asynchronous JMS call


    Il would like to use Spring WS and JMS capabilities in order to :
    - make my client call an ActiveMQ server, send a message to it, continue the process
    - then the server consume the message asynchronously

    I don't make it work with many configuration i already tried.

    Here is my configuration :

        <bean id="my-jms-url" class="net.sf.itcb.common.client.destination.SimpleDestinationProvider" >
            <property name="destinationURI" value="jms:myRequestQueue?deliveryMode=NON_PERSISTENT"/>
        <bean id="myJmsConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
            <property name="brokerURL" value="tcp://localhost:61616"/>
            <property name="dispatchAsync" value="true"/>
            <property name="alwaysSessionAsync" value="true"/>
            <property name="sendAcksAsync" value="true"/>
            <property name="useAsyncSend" value="true"/>
        <bean id="myJmsWebserviceTemplate" class="" >
            <property name="messageSender">
                <bean class="">
                    <property name="connectionFactory" ref="myJmsConnectionFactory"/>
    As you can see, i activated all async functionalities, and my JMS communication are still synchronous.
    Client waits for the server response.
    Moreover, client never stops when it calls a function with void return.

    Is there a way to do it ?

    Thanks for your help.