> SG wrote:
>
> 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?
What is the global context you are talking about? what sort of
information
it contains?
I think that if you want to do special global things in your JOnAS
server the solution is to write a "user service" that the
Jonas server will be able to start, and you will be able to configure
as you want . This will be possible in the next release of JOnAS
in which the server will start a set of services, Jonas ones +
user ones.
regards,
--
Philippe
Philippe Coq Evidian Phone: (33) 04 76 29 78 49
Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".