Sun GlassFish Enterprise Server 2.1 Release Notes

Message Queue

This section describes known Java message queue issues and associated solutions.

Enterprise Server Does Not Start If MQ Broker is Not Started (6740797)

Description

If you configure JMS to be REMOTE, Enterprise Server fails to start if the MQ broker is not started.

Solution

Set the following JVM option as follows: com.sun.enterprise.jms.CONNECT_MQ_LAZILY=true. After setting this JVM option, you can start Enterprise Server if the MQ broker is not started. However, it is recommended that you start MQ before starting the server.

JMS reconnection does not successfully complete in certain cases that are timing dependent (6173308, 6189645, 6198481, 6199510, 6208728)

Description

Failures to reconnect in timing-dependent scenarios can be caused by several problems.

Solution

You can work around these problems by:

MQ broker fails to start with cluster profile on Linux (6524871)

Description

After creating a domain with a cluster profile on a Linux system, you may encounter a java.lang.OutOfMemoryError: Java heap space error, and the server instance may fail to restart because the MQ broker does not start. The system never recovers after this condition. The problem is a misconfigured /etc/hosts file; specifically, the server host name is pointing to the loopback address 127.0.0.1.

Solution

By design, an MQ broker cluster cannot start with the network device configured to point to the loopback address. This is not a bug. The solution is to make sure that the /etc/hosts file for the Enterprise Server host does not point to 127.0.0.1.

Mismatch of old and new classes is created when imqjmsra.jar is loaded before upgrade (6740794)

Description

During server startup, the server checks the Message Queue version. If the Message Queue version is incorrect, then the server upgrades using the imqjmsra.jar. This upgrade JAR and its classes will not be available to the server until the next restart. This situation only occurs if Message Queue is upgraded alone, or if Application Server is patched alone. A side effect of this situation is that sometimes server does not start.

Solution

Both Message Queue and Enterprise Server need to be maintained at the same patch level, or restart the server.