For the archive, I found this slightly more elegant way to get hold of the
JBIContainer instance:

JBIContainer container = ((ComponentContextImpl) context).getContainer();
container.activateComponent(new ActivationSpec("filePoller_" + id, poller));

The component context can be retrievd by injection, for instance. I don't
know how general this solution is, but at least it looks much better than
patching ServiceMix.

Regards

Andreas
-- 
View this message in context: 
http://www.nabble.com/Dynamic-endpoints-in-JBoss-tf1884028.html#a5463744
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to