Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.1.1, 5.0.0
-
None
-
All
Description
In the getServerSession() method of org.apache.activemq.ra.ServerSessionPoolImpl there is an issue with the code block given below
ServerSessionImpl ss = createServerSessionImpl();
// We may not be able to create a session due to the container
// restricting us.
if (ss == null) {
if (idleSessions.size() == 0)
return getExistingServerSession();
}
If the container restricts the creation of a session then messages should be queued to an existing session. So the check should be
if (activeSessions.size() == 0) { throw new JMSException("Endpoint factory did not allows to any endpoints."); }
instead of the one above