Apama 10.7.2 | Developing Apama Applications | Developing Apama Applications in EPL | Implementing Parallel Processing | Introduction to contexts | Comparison of a correlator and a context
 
Comparison of a correlator and a context
Upon injection, each monitor's initial instance runs in the main context. You must explicitly create additional contexts. Conceptually, a context is like a correlator but with the following differences:
*All contexts share the same namespace, and thus share all monitor and event definitions that have been injected.
*A monitor instance must have a context reference to pass an event to that context.
*Execution of Java is allowed in only the main context.
*The engine_receive tool receives events from all contexts or it can be configured to receive events from only specified channels.
*The engine_send tool sends events to all public contexts or to the contexts that are subscribed to the channels it is configured to send events on.