Hi , in where you set the value for your property ...? can you provide some codes to figure out your problem ..?
On Wed, Jun 3, 2009 at 8:40 PM, maalej <amaa...@laas.fr> wrote: > 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 > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/