Aha I see what you mean now.

When I first started playing with this and I noticed the MapMessage vs
BytesMessage thing I tried looking at msg.getJMSType() to see if it said
"amqp/map" or "amqp/list", but it just seemed to return null....


Thanks for the QMF API vs protocol tip, that's a relief - I feel very zen
now :-) I'll get back to coding with confidence.



Gordon Sim wrote:
> 
> 
> Right, that's what I meant by the content type. The message is actually 
> annotated with either amqp/map or amqp/list which lets you determine how 
> to handle that. However in JMS you can't get that information and need 
> to resort to instanceof as you point out (which I agree is not ideal).
> 
> 


--
View this message in context: 
http://apache-qpid-users.2158936.n2.nabble.com/Is-there-any-easy-way-for-a-client-to-detect-which-broker-version-it-s-connecting-to-tp6511290p6512430.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to