Hello
When I try to get a property from MessageContext it always returns null.
the instruction is below:
/****************************************************/
MessageContext inMsgCtx = opctx.getMessageContext("In");
if (inMsgCtx != null) {
Object receivedTime =
inMsgCtx.getProperty(StatisticsConstants.REQUEST_RECEIVED_TIME);
if (receivedTime != null) {
System.out.println("receivedTime != null");
long responseTime = System.currentTimeMillis() -
Long.parseLong(receivedTime.toString());
}
else
System.out.println("receivedTime = null");
/*************************************************/
_Remark :_
StatisticsConstants.REQUEST_RECEIVED_TIME
is a static final String defined in an other class "StatisticsConstants"
value :
REQUEST_RECEIVED_TIME = "wso2wsf.request.received.time";
please can some one help me