You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The easiest way to access the JBIContainer, which is the main point to use ServiceMix internals, is to cast the ComponentContext to its implementation.

JBIContainer container = ((ComponentContextImpl) getContext()).getContainer();

You can then use the container to access ServiceMix internals, such as creating a client, activating a component dynamically, or any other feature you need.

  • No labels