Sorta like:
private Map cache;
cache = Collections.synchronizedMap(new HashMap());
cache.put(uuid+var, var);
Since you mentioned you have two handlers, just populate the map via a singleton in your handlers as you tried with the session.
If that can work for you, then take a look at ehcache or others that can add file persistence and auto removal, etc.
HTH,
Robert
http://www.braziloutsource.com/
On 4/14/06, Riadh BEN HALIMA <[EMAIL PROTECTED]> wrote:
Thanks Robert for another time,
But get/set Property work just in a single PC. So, when I setProperty("Data","value") in client handler (PC1), I can't get it in server handler (located in PC2). I want a solution witch allow me to enrich or extend soap message 4 times: request-client handler, request-server handler, response-server handler and response-client handler. I tried using session, but it doesn't work in client side!!!! Is there another way?
Can You help me?
Riadh
----- Original Message -----From: robert lazarskiSent: Friday, April 14, 2006 5:31 PMSubject: Re: I want to add an information to soap-request message and to get it in soap-response message, how to do?messageContext.getProperty and messageContext.setProperty should do the trick. You can access the MessageContext via a static method or in the handler.
HTH,
Robert
On 4/14/06, Riadh BEN HALIMA <[EMAIL PROTECTED]> wrote:Hi,I want to add an information to soap-request message and to get it in soap-response message, how to do?Can I do it using Session? And how?Please help me.Riadh