Up until now we have managed messages that were simple strings like the following one:
"ecg"/"1;02/20/2012 14:01:59.010;1020,1021,1022";
But as we pointed out in Chapter 3, Basic Coding with HornetQ: Creating and Consuming Messages, HornetQ is able to manage messages that can reach the magnitude of gigabytes using its internal storing system.
In this section, we will see how to pass an entire file to a HornetQ queue so that the message is stored in the file itself and not a single string.
Using our reference example, the need arises from the fact that modern medical equipments neither store nor send ECG messages directly into string format but use some predefined medical format.
We will not go into further details but even if there is no agreed format for the ECG measurement, we will use the most widely used format that is also an ANSI standard for medical measurements named HL7 (www.hl7.org). The main idea behind HL7 is to store the information concerning...