I'd like to make a GlobalProperties stateless session bean. This session bean
would make some global settings available for all the other components, and
these settings could be modified at runtime. The kind of properties I'd like to
put there is, for example, a logging level.
The simplest thing to do is to use the java:comp/env naming context of this bean
to store the properties. This will obviously work for read-only properties. But
can I be sure that the bean will be able to bind or rebind some values in this
context? And if it is able to do it, can I be sure that all the other instances
of the bean will automatically see these new values, or is the container allowed
to give each instance its own copy of the settings?
I tried it with IAS, and it seems to work well, but I wonder about other
servers.
Thanks.
JB.
--
Jean-Baptiste Nizet
[EMAIL PROTECTED]
R&D Engineer, S1 Belgium
Kleine Kloosterstraat, 23
B-1932 Sint-Stevens Woluwe
+32 2 200 45 42
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".