JMS Implementation adds content-type application/octet-stream to outbound messages

39 views
Skip to first unread message

macg

unread,
Feb 13, 2018, 3:52:14 PM2/13/18
to rabbitmq-users
Hello Friends,

I am trying to post a text message from my application to Rabbit MQ using jms. Though the message is being posted, I see that a content_type "application/octet-stream" has been added by the jms client implementation.
However subscriber of this message wants the content_type to be application/json which gets overridden by the jms client implemenation.

Here is the link to the code


Is there a way to bypass the step where the content_type is added? And what is the reason behind setting the content_type?

Thanks,
Giri

Michael Klishin

unread,
Feb 13, 2018, 4:45:45 PM2/13/18
to rabbitm...@googlegroups.com
The underlying protocol/client have that property.

As far as I can tell from the code the value is hardcoded.
Feel free to file an issue on GitHub about making it configurable.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages