Apama 10.3 | Apama Documentation | Connecting Apama Applications to External Components | Standard Connectivity Plug-ins | The Universal Messaging Transport Connectivity Plug-in | Overview of using Universal Messaging in Apama applications | General steps for using Universal Messaging in Apama applications
General steps for using Universal Messaging in Apama applications
Before you perform the steps required to use Universal Messaging in an Apama application, consider how your application uses channels. You should know which components need to communicate with each other, which events travel outside a correlator, and which events stay in a single correlator. Understand what channels you need and decide which channels should be Universal Messaging channels and which, if any, should be Apama channels.
For an Apama application to use Universal Messaging, the tasks you must accomplish are:
1. Use Software AG Installer to install both Apama and the Universal Messaging client libraries in the same Software AG installation directory.
2. Plan and implement the configuration of the Universal Messaging cluster that Apama will use. See the Universal Messaging documentation and Setting up Universal Messaging for use by Apama.
3. Use Software AG Designer to add one of the Universal Messaging connectivity bundles to your Apama project. For detailed information, see Adding the Universal Messaging connectivity plug-in to a project.
4. Open the UM.properties file in your Apama project and specify the location of the Universal Messaging realm server(s) you wish to connect to. You can optionally edit the UM.yaml file if you need to perform more advanced configuration tasks, such as enabling authentication or customizing the way Universal Messaging messages are mapped to Apama events. See Configuring the Universal Messaging connectivity plug-in for detailed information.
5. Optionally, configure any IAF-based adapters your project uses to connect to Universal Messaging. See Configuring IAF adapters to use Universal Messaging.
6. In your EPL code, subscribe to receive events delivered on Universal Messaging channels. See Subscribing to channels.
As with all connectivity plug-ins, the EPL application is responsible for telling the system when it is ready to start receiving events with onApplicationInitialized. See also Sending and receiving events with connectivity plug-ins.
7. In your EPL code, specify Universal Messaging channels when sending events. See Generating events with the send statement.
8. Monitor the Apama application's use of Universal Messaging. See Monitoring Apama application use of Universal Messaging.

Copyright © 2013-2018 | 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.