How BytesMessage behave between different OS
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Pengju_Cheng
Posted On:   Monday, July 16, 2001 10:03 AM

I use IBM MQSeries to transfer a BytesMessage that contains a bunch of text and binary files. I have an integer representing total number of files, then for each file I write an integer of its size before its byte array(contains the file). So on the receiver side the onMessage() can easily read and write them according to their sizes. I tested on NT and every file gets transferred to a new directory without any change. My question is: if I transfer these files to a UNIX machine, how would the message behave because of the Big-little endian thing? Thanks.

Re: How BytesMessage behave between different OS

Posted By:   Anonymous  
Posted On:   Wednesday, July 18, 2001 12:36 PM

The behaviour depends on the byte alignment (encoding) used by the JMS implementation. Typically JMS will not touch your bytes so it depends how (and if) you encode it before inserting into a message. An example would be using XDR encoding.
About | Sitemap | Contact