Creating a destination

A JMS client uses a destination object to specify the target of messages that the JMS client produces and the source of messages that the JMS client receives. Destination objects can represent queues (for point-to-point messaging) or topics (for publish/subscribe messaging).

Before you begin

About this task

To create a destination object, complete the following steps.

Procedure

  1. In the Navigator view, expand the JMS Administered Objects folder, then expand the initial context (and subcontexts, if necessary) in which the destination will be stored in the JNDI naming and directory service.
  2. Right-click the Destinations folder, then click New > Destination. The New Destination wizard opens.
  3. In the wizard, type a name for the destination, then click Next.
  4. Select the type of destination that you want to create, then click Next:
    • If you are using point-to-point messaging, click Queue.
    • If you are using publish/subscribe messaging, click Topic.
  5. Optional: If you want to create the destination object with the same attributes as an existing destination, select the Create with attributes like an existing JNDI object, then click Select to select the existing destination.
  6. Click Finish.

Results

The new destination is displayed in the Content view of the Destinations folder.