I have a problem,
CxfBcComponent comp=null;
ComponentMBeanImpl=null;
ComponentMBeanImpl= jbiContainer.getComponent("servicemix-cxf-bc") // got
it with getContainer() ;) ty
comp = ComponentMBeanImpl.getComponent();
comp.addEndpoint(ep);
but comp is a CxfBcProvider and ComponentMBeanImpl.getComponent() returns a
component
If i use Component comp, then I can't use the method addEndpoint
I don't know how to cast, I tried comp = (CxfBcComponent)
ComponentMBeanImpl.getComponent();
(I debug it is a cxfbcprovider!, but it writes an error can't do the classes
cast)
but it's not valid..
http://www.nabble.com/file/p18406066/dynamicEndpoint.rtf dynamicEndpoint.rtf
I found
A reply by gnodet: in
http://cwiki.apache.org/SM/discussion-forums.html#nabble-to10609052%7Ca10610104
You could use dynamic endpoints :-)
They are resolved dynamically by using
DocumentFragement epr = URIResolver.createWSAEPR("ftp://xxx");
ServiceEndpoint ep = componentContext.resolveEndpointReference(epr)
It will create an endpoint dynamically when you send an exchange to this
ServiceEndpoint.
--
View this message in context:
http://www.nabble.com/Creation-of-BC-provider-from-a-POJO-%28or-a-CXFSE-component%29-tp18399678p18406066.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.