Hi, I haven't tested it, but maybe this might help:
ClientFactory factory = new InitialContext().lookup(ClientFactory.DEFAULT_JNDI_NAME); ServiceMixClient client = factory.createClient(); ... client.close(); (see http://servicemix.apache.org/client-api.html) or try to add <bean class="xxx"> <property name="context" ref="context" /> </bean> to the bean.xml to access the context. (see http://servicemix.apache.org/servicemix-jsr181.html) Crimor wrote: > > Hello, > > I have a cxfse-su service which should call a http-provider. How can I do > this out of the cxfse-su serviceImpl.java. I thougt, creating a > ServicemixClient which opens a messageexchange INOUT whould do this job, > am I'm right? If so, how do i get the JBI Component to initialize the > ServicemixClient? > > Thanks in advance > -- View this message in context: http://www.nabble.com/Call-a-http-provider-service-out-of-a-cxfse-su-service--tp15016319s12049p15017278.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
