O'Reilly logo

WildFly Performance Tuning by Anders Welén, Arnold Johansson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tuning the session

When connecting to a JMS session, you should strive to reuse an existing session as it can be quite expensive and time-consuming to create a new. Note that reusing an existing session is only fully acceptable within a thread as the session in not thread-safe.

In order to realize the requirements of guaranteed delivery, JMS defines an acknowledgement mechanism that is used in the communication between the clients. The behavior of this mechanism can be controlled by selecting an appropriate acknowledgement mode. The JMS specification provides the following three modes:

  • CLIENT_ACKNOWLEDGE: Any client code must acknowledge the message by calling one of its acknowledge methods. Failing to do this may lead to a serious buildup of resources ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required