URI-style SOAP over JMS configuration - 8.0

Talend ESB Service Developer Guide

Version
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend ESB
Talend Runtime
Content
Design and Development
Installation and Upgrade
Last publication date
2023-11-06

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.