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.
Copyright © 2013-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.