Hi,
You mean you want to create cxf bc provider on the fly, that's interesting.
For jbiContainer instance, you can get ComponentContextImpl instance
(let's say contextImpl )from the CxfSeEndpoint, and just do
contextImpl.getContainer().
Regards
Freeman
Fullocto wrote:
Hello;
I would like to crate my Binding component provider endpoints from a pojo
class
What will happen:
- a webservice registers itself (all of them sends a soap message to a BC
consumer, that sends to the CXFSE), the soap message contains the endpoints
and all webservicse use the same wsdl
- the cxfse or pojo component reads the endpoints string and create the
CXFBC endpoint
By looking at the example (junit test) I wanted to write in my CXFSE
implementation class
in a function createProvider(myEndpoint, receivedLocation) {
CxfBcComponent comp=new CxfBcComponent();
CxfBcProvider ep = new CxfBcProvider();
ep.setWsdl(new ClassPathResource("myCommonWsdl.wsdl"));
ep.setService("urn:mynamespace","myService");
ep.setLocationURL("receivedLocation");
myJbiContainer.activateComponent(comp,"servicemix-cxfbc");
But I don't know how to get the reference of the myJbiContainer and there is
already the servicemix-cxfbc component that is registered, i just need an
activateEndpoint