Updating the Service Provider
The Provider side setup includes creating a Provider service (that receives the request from the consumer) and a callback client that will send the callback response to the consumer. The following is an example of a provider side service Spring configuration:
Provider side service Spring configuration
<jaxws:endpoint xmlns:library="http://services.talend.org/demos/Library/1.0"
id="LibraryProviderJMS"
address="jms:jndi:dynamicQueues/library.queue?jndiInitialContextFactory=org.apache.activemq.jndi.ActiveMQInitialContextFactory&
;jndiConnectionFactoryName=ConnectionFactory&jndiURL=tcp://localhost:61616"
serviceName="library:LibraryProvider" endpointName="library:LibraryJmsPort"
implementor="#libraryServerImpl">
<jaxws:features>
<bean class="org.talend.esb.mep.requestcallback.feature.RequestCallbackFeature"/>
<bean class="org.apache.cxf.feature.LoggingFeature"/>
</jaxws:features>
</jaxws:endpoint>
Information noteWarning:
RequestCallbackFeature feature should be added to the service to
allow request-callback functionality.