AlexeiSkate
Programmer
Hi,
I'm trying to develop a Java program that will load the content of a very large file (> 1GB) onto a queue as a single message. I would like to use the segmentation features of MQSeries V5 to load the large file as segments of a large message onto the queue. For each chunk of data that I read from the file, do I need to specify a messageId and/or correlationId for that segment ? e.g. Do I need to do something like: MQMessage.messageId = 1; MQMessage.correlationId = 1; Then for the next segment, I would have to increment the number to the next number ? If there are some sample code lying around somewhere that I can take a look at, that would be great. Thanks for anyone's help.
I'm trying to develop a Java program that will load the content of a very large file (> 1GB) onto a queue as a single message. I would like to use the segmentation features of MQSeries V5 to load the large file as segments of a large message onto the queue. For each chunk of data that I read from the file, do I need to specify a messageId and/or correlationId for that segment ? e.g. Do I need to do something like: MQMessage.messageId = 1; MQMessage.correlationId = 1; Then for the next segment, I would have to increment the number to the next number ? If there are some sample code lying around somewhere that I can take a look at, that would be great. Thanks for anyone's help.