Results 1 to 2 of 2

Thread: Spring2 5.3.3. JMS transport still available in spring3?

  1. #1

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    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?!
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •