How come we have so many kinds of messages
TextMessage , MapMessage, BytesMessage, StreamMessage
when only an Object message would actually suffice? Bcoz a String, Map, Byte array are ultimately plain simple Java objects.
So why not have only one kind of message and use a typecast?
-
MDB Question (1 messages)
- Posted by: Darshan Bildikar
- Posted on: February 22 2003 00:18 EST
Threaded Messages (1)
- MDB Question by Gal Binyamini on February 22 2003 11:03 EST
-
MDB Question[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: February 22 2003 11:03 EST
- in response to Darshan Bildikar
I think it's mostly to represent some common native types of messages in JMS. Non-Java messaging clients may still be able to read strings, maps, etc if they have some native representation as messages in the messaging system.
Gal