Hi folks,
Many thanks in advance for your feedback Thilina.
I considered Thilina's point before starting the design process and at that
moment, I have no idea about MessageFormaters and MessageBuilders.
I was looking for a methodology that can be applied to mix & match message
formats irrespective of the transport based on the content type.I examined
several transports like JMS,XMPP and HTTP in Axis2 earlier versions and I
couldn't find seperate classes for MessageBuilder and MessageFormater.
Instead they all used a method like
*-createMessageContext(<External data packet from the other format>) returns
MessageContext*
to populate the MessageContext from the protocol specific data
packet(PDU).
So I decided to implement a such method inside the StompPacketListener and
it will read the incoming stomp packet,extract the content and finally
creates a MessageContext with a SOAPEnvelope that is independent of the
transport protocol.
I'll be submitting the patch tomorrow because I have to test it against a
Stomp implementation other than Apache ActiveMq.
Folks, I wish you a happy new year with peace and prosperity...
regards,
Dunith Dhanushka