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.

Before you begin

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. Fully expand the Processes directory and double-click JMSClient.bwp.
  4. 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.
  5. Click Run > Debug Configurations.
  6. At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  7. Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the checkbox next to tibco.bw.sample.binding.soap.jms.OneWayDocLiteral.application.
  8. Click Debug.
    This runs the sample in Debug mode.
  9. In TIBCO Business Studio™, 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 is:

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

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.