Hi,
Comment inline

Fullocto wrote:
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
I guess here you want to say "but comp is a CxfBcComponent", right?
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();
this cast should work
(I debug it is a cxfbcprovider!, but it writes an error can't do the classes
cast)
I guess here you want to say "I debug it is a CxfBcComponent", right?
If the original and dest object you want to cast are both CxfBcComponent Object but you still get cast exception, the possible reason is two objects are loaded from different classloaders. Would you please check the classloader issue of your code?
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.


Reply via email to