qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Stevenson <matt.r.steven...@gmail.com>
Subject Setting BytesMessage content type
Date Thu, 21 Jul 2011 07:48:05 GMT

I'm sending a BytesMessage from Java to C++ and I ran into a little trouble
with content type.
In my Java client code I am using a javax.jms.BytesMessage from the
geronimo-jms_1.1 library.
The BytesMessage only has methods for get/setJMSType( ), and not
get/setContentType( ).
If I set the JMSType in Java, it does not change the contentType in C++.

I can work around this by casting the BytesMessage to a qpid
JMSBytesMessage.  Then I can use setContentType( ), which shows up on on the
C++ side.

>From the documentation I was expecting setJMSType to set the contentType.
Looking at the code, it sets the "x-jms-type" message header.

Should setJMSType actually set the contentType?


Matt Stevenson.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message