THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
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 | ||
---|---|---|
| ||
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.