Hi, I need to inject a DeliveryChannel into a HTTP Marshaller. The system that the servicemix-http endpoint invokes requires opening a session prior to the invocation, and this is done by calling another service first. Once the main service is invoked, I need to call yet another service to close the session.
Therefore the sequence is the following: 1. Open Session 2. Invoke Service 3. Close Session As you can see, an "interceptor" pattern is adequate. For that, I am using a HTTP Marshaller (which extends HttpSoapProviderMarshaler), and since 1 and 3 are exposed on the JBI bus, I need to gain access to a DeliveryChannel to be able to send them messages. However, to begin with, I am having trouble injecting a DeliveryChannel into the marshaller. I have tried using the @Resource annotation, injecting a bean with name "context" into the marshaller via Spring, injecting the "jbi" bean initialised in servicemix.xml file, but to no avail. Any ideas? Many thanks. -- View this message in context: http://www.nabble.com/Injecting-DeliveryChannel-into-a-HTTP-Marshaller-tp22915726p22915726.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
