<p>How do you use the the org.springframework.ws.transport.jms.WebServiceMessageDrivenBean class from the Java Spring Framework - Spring-WS project?</p>

<p>There is very little documentation or examples available on the web.</p>

[{'answer_id': 45005, 'author': 'John Meagher', 'author_id': 3535, 'author_profile': 'https://Stackoverflow.com/users/3535', 'pm_score': 2, 'selected': False, 'text': '<p>From what I gather from reading the <a href="http://static.springframework.org/spring-ws/sites/1.5/apidocs/org/springframework/ws/transport/jms/WebServiceMessageDrivenBean.html" rel="nofollow noreferrer">javadocs</a> it looks like this allows a Spring <a href="http://static.springframework.org/spring-ws/sites/1.5/apidocs/org/springframework/ws/transport/WebServiceMessageReceiver.html" rel="nofollow noreferrer">WebServiceMessageReceiver</a> to be invoked using a JMS client instead of a web services client.  Hopefully that\'s right, because the rest of this is based on that assumption.</p>\n\n<p>The basics of is should match with how you create a regular Spring message driven bean.  There is a little bit of documentation on how to do that in the <a href="http://static.springframework.org/spring/docs/2.5.x/reference/ejb.html#ejb-implementation" rel="nofollow noreferrer">Spring Reference Manual</a>.  Also see the <a href="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/ejb/support/AbstractEnterpriseBean.html?is-external=true" rel="nofollow noreferrer">AbstractEnterpriseBean Javadoc</a> for some additional information about how the Spring context is retrieved.  </p>\n\n<p>The extra configuration required for a WebServiceMessageDrivenBean appear to be a <a href="http://java.sun.com/javaee/5/docs/api/javax/jms/ConnectionFactory.html?is-external=true" rel="nofollow noreferrer">ConnectionFactory</a>, a <a href="http://static.springframework.org/spring-ws/sites/1.5/apidocs/org/springframework/ws/WebServiceMessageFactory.html" rel="nofollow noreferrer">WebServiceMessageFactory</a>, and your <a href="http://static.springframework.org/spring-ws/sites/1.5/apidocs/org/springframework/ws/transport/WebServiceMessageReceiver.html" rel="nofollow noreferrer">WebServiceMessageReceiver</a>.  These need to use the bean names specified in the Javadoc for the WebServiceMessageDrivenBean.  The bean names are "connectionFactory", "messageFactory", and "messageReceiver" respectively.  </p>\n'}, {'answer_id': 92867, 'author': 'Keith Lyall', 'author_id': 17719, 'author_profile': 'https://Stackoverflow.com/users/17719', 'pm_score': 0, 'selected': False, 'text': '<p>Using the WebServiceMessageDrivenBean is very similar to the Spring support for Message Driven Beans (MDBS).</p>\n\n<p>First you create a MDB:</p>\n\n<pre><code>public class HelloWorldMessageDrivenBean extends WebServiceMessageDrivenBean {\n    private static final long serialVersionUID = -2905491432314736668L;\n}\n</code></pre>\n\n<p>That is it as far as the MDB goes!</p>\n\n<p>Next you configure the MDB by adding the following following to the MDB definition in the  ejb-jar.xml:</p>\n\n<pre><code>&lt;env-entry&gt;  \n    &lt;description&gt;&lt;/description&gt;  \n    &lt;env-entry-name&gt;ejb/BeanFactoryPath&lt;/env-entry-name&gt;  \n    &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt;  \n    &lt;env-entry-value&gt;  \n        application-context.xml  \n    &lt;/env-entry-value&gt;  \n&lt;/env-entry&gt;\n</code></pre>\n\n<p>This tells the Spring MDB support classes where to pick up your Spring configuration file.</p>\n\n<p>You can now configure your endpoints either in the application-context.xml file or in addition using the annotation support.</p>\n'}]
['https://Stackoverflow.com/questions/37912', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']