[EMAIL PROTECTED] wrote:
...
- If I close the session in sessionCreated (without join
of course), will it fire anyway the messageReceived call ?
At the time writing, I set a special object in the session
that I test in the beginning of every messagedReceived,
just in case it could be fired even if the session is
already closed. That's why before I wrote the join
to be sure the session were closed.

Yes, I think you need to have this type of guard in messageReceived(). However, you don't have to set a special object in the session. Just use session.isClosing(). This will return true if close() has been called on the session.


Anyway, thanks a lot for this perfect explanation.
The bug can be closed !

Ok, great! I've set the issue to Invalid. Please close the issue (only you can do that).

/Niklas


Reply via email to