You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "alan.masciangelo@lmco.com" <al...@lmco.com> on 2024/04/09 19:03:40 UTC
JMS Session termination during async sends
Greetings,
We've encountered an issue when closing JMSContext while doing async sends we tracked down to the exception being thrown here https://github.com/apache/qpid-jms/blob/2.5.0/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsSession.java#L373C51-L373C118. This appears to be at odds with the how javax.jms.Session and javax.jms.JmsContext are expected to behave. From the close() Javadoc
> This method must not return until any incomplete asynchronous send operations for this JMSContext have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs.
It appears to me incomplete sends are not being allowed to be completed normally but rather an exception is being thrown?
Re: JMS Session termination during async sends
Posted by Timothy Bish <ta...@gmail.com>.
On 4/9/24 15:03, alan.masciangelo@lmco.com wrote:
> Greetings,
>
> We've encountered an issue when closing JMSContext while doing async sends we tracked down to the exception being thrown here https://github.com/apache/qpid-jms/blob/2.5.0/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsSession.java#L373C51-L373C118. This appears to be at odds with the how javax.jms.Session and javax.jms.JmsContext are expected to behave. From the close() Javadoc
>
>> This method must not return until any incomplete asynchronous send operations for this JMSContext have been completed and any CompletionListener callbacks have returned. Incomplete sends should be allowed to complete normally unless an error occurs.
> It appears to me incomplete sends are not being allowed to be completed normally but rather an exception is being thrown?
>
You are correct this should be handled by session and connection close
as is done in the MessageProducer, I've created a JIRA for this and will
look into adding handling for this:
https://issues.apache.org/jira/browse/QPIDJMS-600
--
Tim Bish
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org