axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sagara Gunathunga <sagara.gunathu...@gmail.com>
Subject Re: MessageContext.getProperty does not work
Date Wed, 03 Jun 2009 16:29:19 GMT
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 <amaalej@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/

Mime
View raw message