From: Arne Vajhøj on
On 30-06-2010 08:27, gk wrote:
> However, Could you tell when do we need ByteMessage ? Is it used at
> all anywhere ? I see TextMessage , MapMessage,ObjectMessage are quite
> useful . these can cover all sorts of requirement I believe.
>
> I don't understand the use of ByteMessage at all . Is it redundant
> now ? or Still is in use ?
>
> If could tell me a simple example where this could be of use that will
> just wonderful . I did not find any concrete use of this . Could you
> please explain this part ?

If the system is Java end to end, then you probably don't need
ByteMessage.

But if the system includes non-Java parts, then sending
binary data which in Java is treated as a byte array
is very common.

My guess is that ByteMessage is used a lot. Sending some
BLOB's through a Java component is done a lot.

Arne

From: gk on
On 1 July, 05:28, Arne Vajhøj <a...(a)vajhoej.dk> wrote:
> On 30-06-2010 08:27, gk wrote:
>
> > However, Could you tell when do we need ByteMessage ?  Is it used at
> > all anywhere ?  I see TextMessage , MapMessage,ObjectMessage are quite
> > useful . these can cover all sorts of requirement I believe.
>
> > I don't understand the use of ByteMessage at all . Is it redundant
> > now ? or Still is in use ?
>
> > If could tell me a simple example where this could be of use that will
> > just wonderful . I did not find any concrete use of this . Could you
> > please explain this part ?
>
> If the system is Java end to end, then you probably don't need
> ByteMessage.
>
> But if the system includes non-Java parts, then sending
> binary data which in Java is treated as a byte array
> is very common.

Brilliant.....That cleared confusion .


>
> My guess is that ByteMessage is used a lot. Sending some
> BLOB's through a Java component is done a lot.

Thanks . I got my answer.


From: gk on

> > What I was asking here is a practical example. Is there any situation
> > you faced where you used this ?
>
> Not me. But say you were interacting with a CICS system via MQseries
> through itsJMSinterface. CICSmessageslook like this:
>
> https://publib.boulder.ibm.com/infocenter/cicsts/v3r2/index.jsp?topic...
>
> That's got to be a ByteMessage.
>

thanks for the post . by the way I checked the Header . which is the
data part here ? I was expecting some byte[] kind of data part in the
header....but its not there.