Hi all,
I'm trying to store some information in properties element in configuration
context so I can access it from any service instance but each time a client
opens a session, this information dissapears.
Why is this happening? Is Configuration Context restored every time a client
opens a session?
In startUp method, I'm doing this:
confContext.setProperty("serviceLogger",serviceLogger);
confContext.setProperty("validatedSystems",new HashMap());
confContext.setProperty("validatedUsers",new HashMap());
((HashMap)confContext.getProperty("validatedSystems")).put("hola", "adios");
So when a user validates I store an entry for him in validatedUsers and another
entry in validatedSystem for the corresponding system but when a new client
logins, those entries are cleaned, validatedUsers is empty and validatedSystems
has the element I stored in startUp method as a test.
Please, can anybody help me with this?
Thanks,
Jorge Fernández
---------------------------------
Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.