jms - Mixing protocols while using Apache ActiveMQ -


i exploring activemq advanced messaging between heterogeneous applications based on different technologies - c, java, ruby , python. while looking @ supported protocols stumbled understand use case of mixing protocols while performing message exchange. had searched activemq documentation unable find such reference talking this.

my question is, -

producer (newspublisher) publishing news(sports, finance, world) topic (newstopic) using amqp. after publishing, topic storing these news under respective queues (sports, finance , world queues) in situation, client subscribed sports queue jms based, client subscribed finance queue stomp based; can these clients able receive message available on queue published using amqp newpublisher?

i see related question posted earlier found answers unrelated original question thought double check.

mixing protocols in activemq not hard, broker takes care of internal routing , converting of messages incoming protocol outgoing bit don't have worry that.

what have focus on common denominator of message types client mix allows use. in question you've listed 3 different protocols amqp, openwire, , stomp (i'm guessing jms referring activemq jms client uses openwire).

in mix stomp 1 start offers least amount of options message payload (text , binary) need start there. can messages restrained 2 domains? send stomp jms client can restrict jms textmessage , or jms bytesmessage. in amqp need restrict message payload either text based payload binary (think data section containing binary wrapping array of bytes).

activemq's stomp protocol handler offer options message transformations other type such converting mapmessage json based string payload best start simple , work way up.

given breadth of subject matter there lot more said, should started. in short, yes can mix clients on different protocols fine in activemq need have understanding of limitations in doing so.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -