Say you send persistent and non-persistent messages on the same session.
When you send a non-persistent message, it needs to wait the deliver of the persistent message first or else it would be sent out of order.
If I don't reuse the OperationContext between calls, the send of the non-persistent would not wait the previous message.
You will probably remember that when you read this forum post:
I understand that, but that wasn't the question
The question is why is executor used there the same as the session one.
(09:48:52 AM) clebert: jbossfox: I actually confused the use of the SessionExecutor.. that's moot then...
(09:48:52 AM) clebert: I thought I would eventually use it in places like...
(09:49:02 AM) clebert: if (context.pending)
(09:49:02 AM) clebert: ... do something with the executor...
(09:49:09 AM) clebert: so.. that's moot now.. you can just ignore that comment