Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the relationship between types of the sent JMS messages and types of the received JMS messages? Can they be different types?

0
Posted

What is the relationship between types of the sent JMS messages and types of the received JMS messages? Can they be different types?

0

Location: http://www.jguru.com/faq/view.jsp?EID=270806 Created: Dec 6, 2000 Modified: 2000-12-06 12:38:32.329 Author: Rajiv Kanaujia (http://www.jguru.com/guru/viewbio.jsp?EID=226198) Question originally posed by Luis Rivera (http://www.jguru.com/guru/viewbio.jsp?EID=247475 Theoretically, if you have a single JMS provider, there should be no difference in the message type (for both send and receive). If you have multiple JMS providers, and they are talking to each other through a bridge, then there is a possibility that the message types may differ. The bridge vendor should document these issues. However, the entire message should be an instance of a class implementing javax.jms.BytesMessage, javax.jms.MapMessage, javax.jms.ObjectMessage, javax.jms.StreamMessage, or javax.jms.TextMessage. Since each of these message types extends the javax.jms.Message interface, they must be of type javax.jms.Message. If there is a custom message, it too should implement javax.jms.Message interface, or

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123