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.

Should the producing client store data in a messages header or its body?

0
Posted

Should the producing client store data in a messages header or its body?

0

Location: http://www.jguru.com/faq/view.jsp?EID=1592 Created: Dec 1, 1999 Author: Jerry Smith (http://www.jguru.com/guru/viewbio.jsp?EID=9) Decisions regarding where to store data should be based on the following guidelines: • The primary purpose of the header is to identify and route messages. • JMS does not provide a consuming client with access to the message body until the message is consumed. (QueueBrowser does not provide static snapshots.) • It’s more likely that “large quantities of data” will be handled more efficiently in message bodies than in the message header as property values. If consuming clients will be using the data to filter the messages they receive from the JMS server, this data should be small and stored as a message property. In this case, any inefficiencies related to “top-heavy” headers, data conversions to and from strings, and so on will more than likely be offset by the savings in not having to delivery a significant percentage of the messages to a consumi

Related Questions

What is your question?

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

Experts123