Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Code Block
langjava
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.