To Configure the JMS Service

Use the JMS Service page to configure settings to be used by all JMS connections.

For more information about configuring the JMS service, see Chapter 16, Using the Java Message Service, in Oracle GlassFish Server 3.1 Application Development Guide.

  1. In the navigation tree, expand the Configuration node.
  2. Under the Configuration node, select the Java Message Service node.

    The JMS Service page opens.

  3. From the Type drop-down list:
  4. In the Startup Timeout field, type the number of seconds the GlassFish Server waits for the JMS service to start before aborting the startup.

    On a slow or overloaded system, increase the value from the default. The default value is 60.

  5. In the Start Arguments field, type arguments to customize the JMS service startup.

    Use any arguments available through the as-install-parent/mq/bin/imqbrokerd command.

  6. Select the Reconnect Enabled checkbox to make the JMS service attempt to reconnect to a message server (or the list of addresses in the AddressList) when a connection is lost.

    This option is enabled by default.

  7. In the Reconnect Interval field, type the number of seconds between reconnect attempts.

    This interval applies for attempts on each address in the AddressList and for successive addresses in the list. If it is too short, this time interval does not give a broker time to recover. If it is too long, the reconnect might represent an unacceptable delay. The default value is 5 seconds.

  8. In the Reconnect Attempts field, type the number of attempts to connect (or reconnect) for each address in the AddressList before the client runtime tries the next address in the list.

    A value of -1 indicates that the number of reconnect attempts is unlimited (the client runtime attempts to connect to the first address until it succeeds). The default value is 3.

  9. From the Default JMS Host drop-down list, select the name of the default JMS host.

    The default value is default_JMS_host.

  10. From the Address List Behavior drop-down list, select the order of connection attempts.
  11. In the Address List Iterations field, type the number of times the JMS service iterates through the AddressList in an effort to establish (or reestablish) a connection).

    A value of -1 indicates that the number of attempts is unlimited. The default value is 3.

  12. In the MQ Scheme and MQ Service fields, type the Message Queue address scheme name and the Message Queue connection service name if a non-default scheme or service is to be used.

    See MQ Scheme and MQ Service Address Syntax for syntax information.

  13. (Optional) In the Additional Properties area, specify additional properties for the JMS service.

    For information on available properties, see Properties Specific to the JMS Service.

  14. Click Ping to verify that the JMS service is running on the default JMS host.

    If the JMS service is up and running, a message reports that the ping succeeded.

  15. Click Save.

    Tip - To return to the default settings, click the Load Defaults button, then click Save.


More Information
Accessing Remote Servers

Changing the provider and host to a remote system causes all JMS applications to run on the remote server. To use both the local server and one or more remote servers, create a connection factory resource with the AddressList property to create connections that access remote servers. See To Create a JMS Connection Factory Resource.

Equivalent asadmin command

jms-ping

See Also

Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices