|
I added the lines to JonasSecurityServiceImpl.class
to check for all Context Environment properties.
Iterator it =
ctx.getEnvironment().values().iterator();
while(it.hasNext())
System.out.println(it.next());
This returns nothing. How come the environment is
empty at this point? I know that at this stage of Server startup, it has already
started the Database, Transaction and Naming services.
Oh, never mind. I just figured it out. A new
Context is made for each service, since security was just started, the context
has no properties - I think. CompNamingContext is initialized here with
"SecurityService". But this gives me some deeper questions about how Jonas
works:
1. Since every service has its own context, how do
you get the "global" context and those variables (for example if a client puts
anything in there, etc)
2. Why does each service have its own context,
instead of being a part of the "global" one?
|
