Configuring a Basic JMS Implementation

This section describes how to configure a basic JMS implementation using the Administration console.

  1. Get into the Administration console. In the left pane, locate and expand the JMS node.

  2. Using the steps below, you may choose to create a file store for storing persistent messages or a paging store for swapping messages out to memory.

    1. In the left pane, select the Stores node. Then click "Configure a New JMSFile Store" in the right pane.

    2. Specify a name for the store and the directory in which you wish to create it. When this is done, click the Create button.

    The process for creating a paging store is identical.

  3. You also have the option of creating a JDBC store, which will store messages in a database. Use the following steps to create a JDBC store.

    1. In the left pane of the Administration console, expand the JDBC node.

    2. Under the JDBC node, locate and click the Connection Pools node. In the right pane, click the "Configure a New JDBC Connection Pool" link.

    3. Enter the attributes for the connection pool, including Name, URL, and Database properties. Click "Apply" to save your changes.

    4. Click on the Targets tab. From the list of servers (or the list of clusters) select an object on which to deploy the connection pool. Use the arrow button to move the selected target to the Chosen list, then click "Apply."

    5. On the JMS Stores node (in the right pane) click the "Configure a new JMSJDBCStore" link.

    6. Enter a name connection pool and prefix name for the store, then click "Create."

  4. You may choose to create a JMS template. A JMS template will define multiple destinations with similar attribute settings. Also, JMS templates are prerequisites for the creation of temporary queues. The steps below describe how to create a JMS template.

    1. In the left pane of the Administration console click the Templates node. Then, in the right pane, click the "Configure a New JMS Template" link.

    2. Enter a name for the template and click "Create."

    3. Enter Thresholds and Quotas, Override, and Redelivery tabs, as appropriate. When you're done making changes, click "Apply."

  5. The JMS server (not optional) is configured as follows :

    1. In the left pane, click the Server node. Then, in the right pane, click the "Configure a New JMSServer" link.

    2. Enter a name for the server. Optionally, if you have created them, you may now enter the Store, Paging Store, and Templates created in the steps above. When you are finished, click "Create."

    3. Optionally, enter data in the Thresholds and Quotas tab. Click "Apply" when you are finished.

    4. Click on the Targets tab. Select one or more targets from the Available list and use the arrow button to move them to the Chosen list. Click "Apply" when you are done.

  6. Next, you need to create the JMS destinations. These fall into two categories: queues (from one producer to one consumer) and topics (one producer, potentially multiple consumers). The following steps detail how to create a JMS destination.

    1. In the left pane, expand the Servers node. Expand the particular JMS server you want to work with. Finally, click the Destinations node.

    2. Depending on what JMS destination you're trying to create, click either the link for "Configure a New JMS Queue" or the link for "Configure a New JMS Topic."

    3. Fill in the destination name, JNDI name, and other properties on the General tab.

    4. If you are creating a topic, enter values for "Thresholds and Quotas," "Override," "Redelivery," and "Multicast."

    5. Click "Apply" to save your changes.

  7. Create a connection factory. (This is necessary for your JMS clients to create JMS connections.)

    1. In the left pane, expand the Connection Factory node. Then, in the right pane, click "Configure a New JMS Connection Factory."

    2. Fill out the name and JNDI name for the connection factory, as well as any of the optional attributes you need.

    3. Enter values in the Flow Control and Transaction tabs as needed.

    4. Click "Apply" to save your changes.

    5. On the Targets tab, deploy the connection factory on at least one WebLogic server or cluster instance by clicking it and moving it from the Available to the Chosen list.

    6. Click "Apply" to save your changes.

  8. You may define a sort order for a specific destination using the Destination Keys node in the left pane.

  9. You may make physical destinations part of a logical distributed destination using the Distributed Destinations node.

  10. You may make one or more JMS session pools. These make it possible for your application to handle multiple messages simultaneously .

Similarly, you may also create connection consumers that retrieve server sessions and process messages.



BEA WebLogic Server Administration Kit
BEA WebLogic Server Administration Kit (Prentice Hall PTR Advanced Web Development)
ISBN: 0130463868
EAN: 2147483647
Year: 2002
Pages: 134
Authors: Scott Hawkins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net