Domanda

I need to send the xml as file and also as string to jms queue.

For sending xml as file on queue

i am planning to go this way How can I use TextMessage to send an XML file to the JMS Queue?

For sending the xml as string

i am first planning to read xml as string using buffered reader and then send it as text message.

Are these right solutions?

È stato utile?

Soluzione

Yes those are the right solutions.

However, in my opinion, it might be more efficient if you use JSON instead of XML (less data over the network).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top