Hi,

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 :

Code:
    <bean id="my-jms-url" class="net.sf.itcb.common.client.destination.SimpleDestinationProvider" >
        <property name="destinationURI" value="jms:myRequestQueue?deliveryMode=NON_PERSISTENT"/>
    </bean>  
    
    <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>

    <bean id="myJmsWebserviceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate" >
        <property name="messageSender">
            <bean class="org.springframework.ws.transport.jms.JmsMessageSender">
                <property name="connectionFactory" ref="myJmsConnectionFactory"/>
            </bean>
        </property>
    </bean>
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.