Hi All,
I am in the process of creating web services using JMS transport, and I have a few questions.
I have the beans configured like this in *servlet.xml (taken from chapter 5 of Spring web services - reference documentation, under section JMS Transport.)
Code:
<bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="vm://localhost?broker.persistent=false"/>
</bean>
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"/>
<bean class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory"/>
<property name="destinationName" value="RequestQueue"/>
<property name="messageListener">
<bean class="org.springframework.ws.transport.jms.WebServiceMessageListener">
<property name="messageFactory" ref="messageFactory"/>
<property name="messageReceiver" ref="messageDispatcher"/>
</bean>
</property>
</bean>
But I have some fundamental questions about JMS web services:
- Where do I deploy the war from this web app?
- How do I access the WSDL? What would be the URL for the WSDL?
- This configures a request queue. Could I use a topic?
- Would the response go on a queue as well? Where is that configured? Could I use a topic for that too?
Thank you so much for your help!