activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Mielke (JIRA)" <>
Subject [jira] [Commented] (AMQ-4366) PooledConnectionFactory closes connections that are in use
Date Tue, 09 Apr 2013 07:24:17 GMT


Torsten Mielke commented on AMQ-4366:

I am not aware of any side effects when applying the workaround and setting idleTimeout=0.

As a consequence sessions won't be invalidated just because they were idle for a specific
period of time. But that should generally not be a problem. 
I had a customer testing this idleTimeout=0 in their integration test env and it did not cause
any problems. 

Also, its my understanding that you generally should not loose any messages due to the "The
Session is closed" error. 
Typically the session is checked for validity right *before* sending the message. You app
code of course needs to handle the error and should not assume that the msg was sent.

> PooledConnectionFactory closes connections that are in use
> ----------------------------------------------------------
>                 Key: AMQ-4366
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: activemq-pool
>    Affects Versions: 5.7.0, 5.8.0
>            Reporter: Petr Janata
>            Assignee: Timothy Bish
>             Fix For: 5.9.0
>         Attachments: poolConClose.diff
> {{PooledConnectionFactory}} closes connections that are still referenced and should not
be closed. Happens only when connection idle or expire time passes. Calling {{createConnection}}
after that time will invalidate the connection and all previously obtained {{Sessions}} will
behave as closed.
> Due to default 30 second idle timeout, it is likely not to cause problems when:
> * connection is continually in use
> * all {{PooledConnection}} s are borrowed at startup
> Client with session whose connection was prematurely closed will see similar stacktrace:
> {noformat}
> javax.jms.IllegalStateException: The Session is closed
>                 at org.apache.activemq.ActiveMQSession.checkClosed(
>                 at org.apache.activemq.ActiveMQSession.configureMessage(
>                 at org.apache.activemq.ActiveMQSession.createBytesMessage(
>                 at org.apache.activemq.pool.PooledSession.createBytesMessage(
> {noformat}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message