uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

8.5.6 Sending JMS Messages

Send the JMS message with parameters specified to the transmission queue.

To send a JMS message:

  1. Start a local transaction and register the JMS message.
    Example:
     
    qSender.send(message);
     
  2. Define the termination process.
    Example:
     
    qSession.commit();       // local transaction commit
    qSender.close();         // QueueSender release
    qSession.close();        // QueueSession release
    qConnection.close();     // QueueConnection release