Announcement Announcement Module
Collapse
No announcement yet.
Spring2 5.3.3. JMS transport still available in spring3? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring2 5.3.3. JMS transport still available in spring3?

    Is the following code still able to u
    http://static.springsource.org/sprin...ml/server.html

    5.3.3. JMS transport
    Spring Web Services supports server-side JMS handling through the JMS functionality provided in the Spring framework. Spring Web Services provides the WebServiceMessageListener to plug in to a MessageListenerContainer. This message listener requires a WebServiceMessageFactory to and MessageDispatcher to operate. The following piece of configuration shows this:
    <beans>

    <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFacto ry">
    <property name="brokerURL" value="vm://localhost?broker.persistent=false"/>
    </bean>

    <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMe ssageFactory"/>

    <bean class="org.springframework.jms.listener.DefaultMes sageListenerContainer">
    <property name="connectionFactory" ref="connectionFactory"/>
    <property name="destinationName" value="RequestQueue"/>
    <property name="messageListener">
    <bean class="org.springframework.ws.transport.jms.WebSer viceMessageListener">
    <property name="messageFactory" ref="messageFactory"/>
    <property name="messageReceiver" ref="messageDispatcher"/>
    </bean>
    </property>
    </bean>

    <bean id="messageDispatcher" class="org.springframework.ws.soap.server.SoapMess ageDispatcher">
    <property name="endpointMappings">
    <bean
    class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootAnnotationMethodEndpointMapping">
    <property name="defaultEndpoint">
    <bean class="com.example.MyEndpoint"/>
    </property>
    </bean>
    </property>
    </bean>
    </beans>

  • #2
    Please use [ code][/code ] tags when posting code, that way it remains readable ...

    Why wouldn't it be possible anymore?! Classes are still there, have you tried it?!

    Comment

    Working...
    X