Re: Session closed suddenly

Jyrki Saarinen <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Tim Anderson wrote:

>You should be able to have a Session instance for as long as
>you have a connection to the server.
>You definitely don't need to create a new Session every time
>you send a message.
>What was the outcome of registering an exception listener?
>Did your listener get invoked?
>  
>

I changed the code to create a JMS Session every time a message is 
published -
and still got "session being closed" exception, only this time from 
TopicConnection..
so the physical connection really seems to be broken, but I fail to see how
that can happens since all comms is inside localhost:

2005-03-09 15:36:45,250 ERROR [mssp.jms.IPCJMSImpl]: send()
javax.jms.IllegalStateException: Cannot perform operation - session has been 
closed
        at org.exolab.jms.client.JmsConnection.ensureOpen(JmsConnection.java:
522)
        at org.exolab.jms.client.JmsTopicConnection.
createTopicSession(JmsTopicConnection.java:100)


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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.