RE: Session closed suddenly
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <003301c51e5b$137f1540$0100000a@xerces> |
There are a couple of possibilities:
. someone is invoking close() on the Connection
that owns the Session
. the physical connection to the server has been lost.
This forces closure of the Sessions attached to the Connection
You can verify if this is the case by registering
an exception listener with the connection e.g.:
connection.setExceptionListener(new ExceptionListener() {
public void onException(JMSException exception) {
exception.printStackTrace();
}
};
-Tim
> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf
> Of Jyrki Saarinen
> Sent: Saturday, 26 February 2005 8:10 PM
> To: [email protected]
> Subject: [openjms-user] Session closed suddenly
>
>
>
> Hello all,
>
> I have a problem when publishing a message to a topic. The
> session is suddenly closed, which is weird since I'm not
> closing it. Is there a timeout on a session after which it is
> closed after being idle for x seconds?
>
> Here's the code I'm using to publish a message:
>
> ObjectMessage message = this.topicSession.createObjectMessage();
> message.setObject(txid);
> this.topicPublisher.publish(message);
>
> Here's the stack trace I'm getting:
>
> javax.jms.IllegalStateException: Cannot perform operation -
> session has been
> closed
> at
> org.exolab.jms.client.JmsSession.ensureOpen(JmsSession.java:1010)
> at
> org.exolab.jms.client.JmsSession.createObjectMessage(JmsSession.java:
> 278)
>
> Jyrki
>
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from
> real users. Discover which products truly live up to the
> hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click