Apama 10.7.2 | Developing Apama Applications | Developing Apama Applications in Java | Overview of Apama JMon Applications | Parallel processing in JMon applications | Using contexts in JMon applications
 
Using contexts in JMon applications
*To use EPL contexts in JMon applications
1. In EPL code, create a context that you want to use in your JMon application.
2. In your JMon application, define an event type that contains a Context field.
3. Use this event type to obtain a reference to the context you created in EPL.
4. Use the context reference to enqueue events to that context.
For an example, see the samples\java-monitor\context directory in your Apama installation directory.