Skip to main content

Updating the Service Provider

Availability-noteDeprecated

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&amp
;jndiConnectionFactoryName=ConnectionFactory&amp;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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!