From: gk on
Its very much confusing that how many type of messages JMS supports .
I have read it can support ObjectMessage , MapMessage , TextMessage ,
ByteMessage,StreamMessage etc . I'm not sure how many are still
there .

Is it true that JMS can support any message type ?Could you please
throw some light on the type of messages.
From: Jean-Baptiste Nizet on
On 30 juin, 09:52, gk <src...(a)gmail.com> wrote:
> Its very much confusing that how many type of messages JMS supports .
> I have read  it can support ObjectMessage , MapMessage , TextMessage ,
> ByteMessage,StreamMessage etc .  I'm not sure how many are still
> there .
>
> Is it true that JMS can support any message type ?Could you please
> throw some light on the type of messages.

RTFM : http://download.oracle.com/docs/cd/E17477_01/javaee/5/api/
From: gk on
On Jun 30, 2:08 pm, Jean-Baptiste Nizet <jni...(a)gmail.com> wrote:
> On 30 juin, 09:52, gk <src...(a)gmail.com> wrote:
>
> > Its very much confusing that how many type of messages JMS supports .
> > I have read  it can support ObjectMessage , MapMessage , TextMessage ,
> > ByteMessage,StreamMessage etc .  I'm not sure how many are still
> > there .
>
> > Is it true that JMS can support any message type ?Could you please
> > throw some light on the type of messages.
>
> RTFM :http://download.oracle.com/docs/cd/E17477_01/javaee/5/api/

Do you know the answer of my specific question ? If you want to help ,
could you please post the relevant link instead of the entire API.

I don't understand your post.
From: Jean-Baptiste Nizet on
On 30 juin, 11:40, gk <src...(a)gmail.com> wrote:
> On Jun 30, 2:08 pm, Jean-Baptiste Nizet <jni...(a)gmail.com> wrote:
>
> > On 30 juin, 09:52, gk <src...(a)gmail.com> wrote:
>
> > > Its very much confusing that how many type of messages JMS supports .
> > > I have read  it can support ObjectMessage , MapMessage , TextMessage ,
> > > ByteMessage,StreamMessage etc .  I'm not sure how many are still
> > > there .
>
> > > Is it true that JMS can support any message type ?Could you please
> > > throw some light on the type of messages.
>
> > RTFM :http://download.oracle.com/docs/cd/E17477_01/javaee/5/api/
>
> Do you know the answer of my specific question ? If you want to help ,
> could you please post the relevant link instead of the entire API.
>
> I don't understand your post.

It's pretty simple : Java EE defines a number of classes and
interfaces. One of them is the Message interface, used by JMS. If you
have already read about JMS, you should know that. Surprisingly, this
interface is in the package javax.jms. So if you click on the link I
gave you, browse in the upper left frame until you find javax.jms,
click on the link, find the Message interface in the bottom left frame
and click on the link, you'll find the entire documentation for the
javax.jms.Message interface. And surprisingly, the various types of
messages are described in this documentation page.

A bit of googling would have led you to this page as well :
http://download.oracle.com/docs/cd/E17477_01/javaee/5/api/javax/jms/Message..html

If you don't know what RTFM means, then read http://en.wikipedia.org/wiki/RTFM

JB.
From: gk on
On Jun 30, 4:30 pm, Jean-Baptiste Nizet <jni...(a)gmail.com> wrote:
> On 30 juin, 11:40, gk <src...(a)gmail.com> wrote:
>
>
>
>
>
> > On Jun 30, 2:08 pm, Jean-Baptiste Nizet <jni...(a)gmail.com> wrote:
>
> > > On 30 juin, 09:52, gk <src...(a)gmail.com> wrote:
>
> > > > Its very much confusing that how many type of messages JMS supports .
> > > > I have read  it can support ObjectMessage , MapMessage , TextMessage ,
> > > > ByteMessage,StreamMessage etc .  I'm not sure how many are still
> > > > there .
>
> > > > Is it true that JMS can support any message type ?Could you please
> > > > throw some light on the type of messages.
>
> > > RTFM :http://download.oracle.com/docs/cd/E17477_01/javaee/5/api/
>
> > Do you know the answer of my specific question ? If you want to help ,
> > could you please post the relevant link instead of the entire API.
>
> > I don't understand your post.
>
> It's pretty simple : Java EE defines a number of classes and
> interfaces. One of them is the Message interface, used by JMS. If you
> have already read about JMS, you should know that. Surprisingly, this
> interface is in the package javax.jms. So if you click on the link I
> gave you, browse in the upper left frame until you find javax.jms,
> click on the link, find the Message interface in the bottom left frame
> and click on the link, you'll find the entire documentation for the
> javax.jms.Message interface. And surprisingly, the various types of
> messages are described in this documentation page.
>
> A bit of googling would have led you to this page as well :http://download.oracle.com/docs/cd/E17477_01/javaee/5/api/javax/jms/M...
>
> If you don't know what RTFM means, then readhttp://en.wikipedia.org/wiki/RTFM

Ok .I have gone through that material . I found all types of messages
explained there . Thats very nice . I liked that .

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 ?