For a query application that will be deployed on a cluster of correlators, you need to add Java Message Service (JMS) support and Universal Messaging (UM) support to your project. See
Correlator arguments and
Adding Universal Messaging configuration to projects.
Also, you must map JMS messages and EPL events. See
Mapping Apama events and JMS messages.