Apama 10.15.0 | Developing Apama Applications | Developing Apama Applications in Java | Developing and Deploying JMon Applications | Package names and namespaces in JMon applications
 
Package names and namespaces in JMon applications
There is no correlation between the correlator namespace defined for a named JMon event or monitor, and the Java package structure of the class file in which that event or monitor is implemented. Event expressions are based on the correlator namespace, not on the Java package of the implementation.
Consider the following example. An event type defined in a Java class a.b.c.MyEvent that is given the correlator name x.MyEvent. Also a monitor defined in a Java class a.b.c.MyListener that is given the correlator name y.MyListener. Now, although the two classes are in the same Java package and need not use import statements to see each other, their correlator names are in different namespaces. This means that an event expression in y.MyMonitor will need to use the fully qualified name x.MyEvent to refer the event.