rabbitmq-jms-client icon indicating copy to clipboard operation
rabbitmq-jms-client copied to clipboard

Add pluggable conversion strategy on message consumption

Open acogoluegnes opened this issue 6 years ago • 5 comments

Right now the conversion from the native AMQP message to a JMS message is hardcoded, which is not great for interoperability. JMS "AMQP" destinations provide some interoperability, but are limited to JMS queues. So there's currently no way that some JMS subscribers can consume messages published by non-JMS clients.

This could be implemented as chain of responsibility, the current behavior being the default and usually last part when custom steps are added. An application developer should typically only focus on the payload, so helpers e.g. to deal with headers conversion should be provided.

Original mailing-list thread: https://groups.google.com/d/msg/rabbitmq-users/Zbcp9WL-vUM/X_M_UuurAgAJ

acogoluegnes avatar Nov 22 '18 10:11 acogoluegnes

Faced the same issue when trying to establish interaction between PHP (php-amqplib) and JMS clients.

dmitry027 avatar Nov 28 '18 03:11 dmitry027

Could you please let me know how to consume the message from a queue with JMS client and the producer is non-JMS? When we create the JNDI file and consume , we are receiving junk characters in message payload which is causing the erros.

NawazAliShaik avatar Aug 09 '22 17:08 NawazAliShaik

Can you use the mailing list or start a discussion? GitHub issues are for actionable items, not support. Please provide more information on your problem, like code samples to reproduce.

There's this test that maps to your use case from my understanding.

acogoluegnes avatar Aug 10 '22 06:08 acogoluegnes

Facing this issue at the moment. Publisher is a .net client and the consumer uses JMS.

fallensieg avatar Feb 13 '24 12:02 fallensieg

@fallensieg you are welcome to contribute a draft (or maybe even a production version) of what such a "pluggable converter" might look like. This is open source software after all.

michaelklishin avatar Feb 13 '24 14:02 michaelklishin