Try OpenEdge Now
skip to main content
Managed Adapters Guide
JMS Managed Adapter : Tutorial 4: JMS Adapter - Receiving messages from external applications : The Order Processing application
 

The Order Processing application

The design of your Order Processing Application depends on: your operating environment, the type of application server and JMS server, how the application will receive the order data, and other factors. In this tutorial, we assume that your application produces MapMessages with a single string field, named OrderData, and the CorrelationID of each message is set to match the Order ID:
MapMessage msg = jmssession.createMapMessage();
msg.setString("OrderData", data);
msg.setJMSCorrelationID(correlationId);
If you plan to actually implement the application (rather than just reading the example below), refer to the documentation of your application server and the many examples of JMS sender applications available on the Internet.