java - Reading a JMS Map Message in WSO2 -
i reading jms map messages wso2 esb. able pick message up, read headers, cannot read in body of message. have created custom mediator, when try following , submit jms message msg_format property in header, works fine. when put property in map body, wso2 doesn't pick up. code below works read header, not read map body
public boolean mediate(messagecontext context) { string msgformat = context.getproperty(msg_format).tostring();
any thoughts?
based on explanation seems trying read message in custom mediator when consume jms queue.
in order read message, can use following code in mediate method :
public boolean mediate(messagecontext context) { string msgformat = context.getproperty(msg_format).tostring(); soapenvelope envelope = synctx.getenvelope() ....
refer : https://synapse.apache.org/apidocs/org/apache/synapse/messagecontext.html
Comments
Post a Comment