All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-jmsconnectionedit.html Maven / Gradle / Ivy




To Edit a JMS Connection Factory Resource

  1. In the navigation tree, expand the Resources node.
  2. Under the Resources node, expand the JMS Resources node.
  3. Under the JMS Resources node, select the JMS Connection Factories node.

    The JMS Connection Factories page opens.

  4. On the JMS Connection Factories page, click the name of the connection factory that you are editing.

    The Edit JMS Connection Factory page opens.

  5. In the Description field, type a description of the connection factory.
  6. Select the Status Enabled checkbox to enable the resource at run time.

    This option is enabled by default.

  7. In the Initial and Minimum Pool Size field, specify the minimum number of connections in the pool.

    The default value is 8.

  8. In the Maximum Pool Size field, specify the maximum number of connections in the pool.

    The default value is 32.

  9. In the Pool Resize Quantity field, specify the number of connections to be removed when pool idle timeout expires.

    The default value is 2.

  10. In the Idle Timeout field, specify the maximum time in seconds that a connection can remain idle in the pool.

    The default value is 300.

  11. In the Max Wait Time field, specify the amount of time the application requesting a connection will wait before getting a connection timeout.

    The default value is 60000.

  12. Select the On Any Failure Close All Connections checkbox so the GlassFish Server will close all connections in the pool and reestablish them if a single connection fails.

    If you do not select the checkbox, individual connections will be reestablished only when they are used.

  13. For a JMS connection factory resource, specify the Transaction Support value as follows:
    • Specify XATransaction (the default value) for a resource that can be used for transactions that involve the use of more than one resource within a transaction scope.

      For example, this resource plus a JDBC resource, a connector resource, or another JMS connection factory resource. This value offers the most flexibility. A resource that is configured as XATransaction will participate in two-phase commit operations.

    • Specify LocalTransaction for a resource that can be used either for transactions that involve only one resource within the transaction scope or as the last agent in a distributed transaction that involves more than one XA resource.

      This value offers significantly better performance. A resource that is configured as LocalTransaction will not be used in two-phase commit operations.

    • Specify NoTransaction for a resource that can never participate in transactions.

      This setting is of limited use in JMS applications.

  14. Select the Connection Validation checkbox to enable connection validation.

    This option is disabled by default.

  15. (Optional) In the Additional Properties table, specify additional properties for the connection factory.

    For information on available properties, see Properties Specific to JMS Connection Factories.

    • To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.
    • To modify a property, edit that property's Value field.
    • To delete a property, select the checkbox to the left of the Name field of the property that you are deleting, then click the Delete Properties button.
  16. Click Save.

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


See Also
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2025 Weber Informatics LLC | Privacy Policy