[jboss-dev-forums] [Design of JBoss ESB] - MessageType design
kurt.stam@jboss.com
do-not-reply at jboss.com
Thu Aug 2 16:01:46 EDT 2007
It looks like we copied the JMS message types of: BytesMessage, MapMessage, ObjectMessage, StreamMessage and TextMessage
I see the following issues with the current implementation:
1. There are no interfaces for them in our implementation, so our Message
will not actually 'be' one of these types. You'll have to do Message.getPayload() and then figure out what type this it by using getInstanceOf().
2. We have left the old body implementation, so we have a body and a payload-body as I understand it. This is confusing. I mean I can still do msg.getBody.add("kurt", "Stam") and ignore the new payload stuff.
3. CommandMessage is listed at the same level as BytesMessage, but I think a CommandMessage is more at the ESB logical level. It has nothing to do with the implementation of the message. Maybe we can simple add
a Message.property of MESSAGE_TYPE for this? No need to have a different API for this type of message.
Maybe I'm missing something.
--Kurt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070277#4070277
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070277
More information about the jboss-dev-forums
mailing list