Previous Next vertical dots separating previous/next from contents/index/pdf

Using a JMS Control

You can add a JMS control to any of the following:

To Insert a New JMS Control

To create a new JMS control and insert it into your source code in a single step:

  1. Make sure you have opened the target web service, page flow controller or control in the editor window.
  2. Right click on the editor window and choose Insert > Control.

    Under New System Control, click on JMS Control and click OK.

  3. Follow the instructions in Creating a New JMS Control.

To Insert an Existing JMS Control

  1. Make sure you have opened the target web service, page flow controller or control in the editor window.
  2. Right click on the editor window and choose Insert > Control.

    Click on the name of the control and click OK.

Once you've set up the JMS control, you can add code to send and receive messages via JMS.

JMS Control Properties

The properties of the JMS control can be set using Annotations view from J2EE perspective when the client .java file is open in the editor and the cursor is located in the JMS control name. You specify the messaging style (queue, topic or automatic) and provide the JNDI identification for the queue or topic. You also specify a connection factory for the control. For detailed information on the @JMSControl annotation and its attributes, see the Beehive documentation for the JMS control.

JMS Control Methods

The JMS control has the following default methods:

All of the methods you define on the JMS control send or publish to the queue or topic named by the sendJndiName attribute of the @JMSControl annotation.

Consult the Beehive documentation for JMS control for more information.

Related Topics

JMS Control

Using System Controls

 

Skip navigation bar   Back to Top