users@jms-spec.java.net

[jms-spec users] [jsr343-experts] State of a message in a producer after send

From: Matthew White <WHITEMAT_at_uk.ibm.com>
Date: Fri, 13 Dec 2013 16:45:48 +0000

Hello;

After a message has been received by a MessageConsumer - the state of the
message is in read-only state. There's nothing that I can see in the
JavaDoc/Spec that indicates what the state of the message in the thread
that has done a send. So for example - in this pseudo-code

{
TextMessage tm = session.createTextMessage();
producer.send(tm);
// what state is TM in now? Read-only, write-only?
}

Similarly if a CompletionListener is set - when that gets called - is the
message object that is passed read or write-only?

Thoughts welcome!

Regards, Matthew.

Matthew White
WebSphere MQ JMS Technical Lead
Office Location:
DE2B12
Mail Point 127
IBM United Kingdom Limited
Hursley Park
Winchester
Hampshire, SO21 2JN
(Internal:
247653
(External:
+44 (0)1962 817653
*Email:
WHITEMAT_at_uk.ibm.com
Lotus Notes:
Matthew White/UK/IBM_at_IBMGB
 
LinkedIn
About.me

 
"The wrong answers are the ones you go looking for when the right answers
stare you in the face"

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU