axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruchith Fernando" <ruchith.ferna...@gmail.com>
Subject Re: [Axis2] Stateful services question
Date Thu, 01 Jun 2006 10:13:50 GMT
Hi Michele,

Hmm ... to prevent overriding of the same property in each client
invocation you can simply check whether the property exists in and
then modify the property (state) appropriately.

Example:

Modify the following:

> private static void handleRequest(MessageContext inCtx) {
>         confCtx.setProperty(<something>);
>         .....
>         // eventually confCtx.getProperty(<some_key);
>         // process
> }

To:

private static void handleRequest(MessageContext inCtx) {
        if(confCtx.getProperty(<some_key) !=  null) {
              confCtx.setProperty(<something>);
        }
        .....
        // eventually confCtx.getProperty(<some_key);
        // process
}


Thanks,
Ruchith

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message