Sending a One Way Message over JMS

The SOAP Invoke activity is used to send a one way message over JMS. The message format is a doc-literal element. Because this is a one way message, no response is expected from the server.

Prerequisites

TIBCO Enterprise Message Service must be running.

Procedure

  1. In the samples directory, select binding > soap > jms > OneWayDocLiteral and double-click tibco.bw.sample.binding.soap.jms.OneWayDocLiteral. For more information, see Accessing Samples.
  2. In Project Explorer expand the tibco.bw.sample.binding.soap.jms.OneWayDocLiteral project.
  3. Set the default ApplicationProfile to match the OS you are running on. For more information, see Setting the Default Application Profile.
  4. Fully expand the Processes directory and double-click JMSClient.bwp.
  5. Verify your TIBCO Enterprise Message Service connection.
    1. Fully expand the Resources directory.
    2. Double-click JMSConnectionResource.jmsConnResource.
    3. In the Basic Configuration dialog, click the Test Connection button to verify the connection.
  6. Click Run > Debug Configurations.
  7. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  8. Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the check box next to tibco.bw.sample.binding.soap.jms.OneWayDocLiteral.application.
  9. Click Debug.
    This runs the sample in Debug mode.
  10. In TIBCO Business Studio™ for BusinessWorks™, click the Terminate icon to stop the process.

Result

The console displays messages similar to the following:

16:11:19.386 INFO [bwThread:In-Memory STWorkProcessor-2] c.t.b.p.g.L.t.b.s.b.s.j.O.Log - [Server] Received Request :: date=2016-04-21+05:30 boolean=true double=1.1 int=22 string=testStr byte=33 short=44

The expected outcome for the file identified in the OUTPUT_FILE property is:

[Server] Received Request :: date=2016-04-21+05:30 boolean=true double=1.1 int=22 string=testStr byte=33 short=44

The OneWayDocLiteral.log output file generated at the C:\tmp\OneWayDocLiteral location shows the one way request received from the server.

Understanding the Configuration

The project comprises the following two processes:

  • JMSClient
  • JMSServiceProcess

The JMSClient process sends a one way request to the JMSServiceProcess through a SOAP doc-literal message.