URI-style SOAP over JMS configuration - 6.3

Talend ESB Service Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
Installation and Upgrade
EnrichPlatform
Talend ESB

To use SOAP over JMS with Talend ESB, the following dependency shoud be added to the service:

pom.xml

<dependency>
    <groupId>org.talend.esb</groupId>
    <artifactId>transport-jms</artifactId>
    <version>${project.version}</version>
</dependency>

After adding the dependency, it is possible to configure CXF with URI-style SOAP over JMS addresses. This dependency is optional.

Example of URI-style SOAP over JMS configuration

...

<jaxws:endpoint xmlns:library="http://services.talend.org/demos/Library/1.0"
        id="LibraryNotificationReceiver" address="jms:jndi-topic:dynamicTopics/newBooksTopic.topic?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&amp
;jndiConnectionFactoryName=ConnectionFactory&amp;jndiURL=tcp://localhost:61616"
        serviceName="library:LibraryProvider" endpointName="library:LibraryTopicPort"
        implementor="org.talend.services.demos.client.LibraryNotificationReceiverImpl">

        <jaxws:features>
            <bean class="org.apache.cxf.ws.addressing.WSAddressingFeature"/>
        </jaxws:features>
</jaxws:endpoint>

For more information, see URI structure.