The Oracle Docs say –
A TextMessage object is used to send a message containing a java.lang.String. It inherits >from the Message interface and adds a text message body.
This message type can be used to transport text-based messages, including those with XML >content.
How is this possible? Are the contents of the XML only send-able(by converting it into an Object and then sending it)? Can the XML File be really put on the Queue in any way and then be read on the receiver side?
Please use this and object you send must be Serializable
Add –xml files as many as you want
Receiver End :–
1 xml parsing link here
2 xml parsing link here