The java application I'm working on receives messages whose 'Format' is set to empty spaces. This seems to indicate to the mq classes to build and return a BytesMessage.
However the content of the message is text.
Would there be a setting to fix the format in the mq classes and to get a TextMessage rather than BytesMessage message implementation ?
Well, the simplest solution is to get the sending application to put the correct value in the MQMD Format field. Or you could use IIB (Message Broker) to do it but it might be overkill. Or write a simple application to do it.
Like Roger said, I would push for the sender to correctly set the format.