Information Technology Reference
In-Depth Information
having to declare its specific type. It can mark a RuntimeEnvironment instance as
well:
@Inject @PerRequest
RuntimeManager manager;
@Inject @PerRequest
RuntimeEnvironment environment;
Remember that CDI is called upon initialization, so always inject the manager but not the
RuntimeEngine instance.
Tip
If you use a Per Process Instance or Per Request Runtime Manager, never inject KIE ses-
sions or Human task service objects as CDI beans. They will be managed by the runtime
manager and different KIE session instances and services could be created. Instead, you
should only inject the manager and request sessions and services from a specific runtime
engine.
Search WWH ::




Custom Search