Hi Ceki,

Thank you for your response. I'll snip your e-mail, since
you've already posted the original to this list.

>If you like, we can work together to implement this JBoss specific
>RepositorySelector

Yes, I'm new to 1.2, I'm still at the investigation
stage. I've downloaded the alpha, looks like I need to do some testing. :-)

>If we want static Logger variables to depend on the application, then
>one *possible* approach is to let the ClassLoader assigned to the
>application contain a LoggerRepository field.
>...
>If however we say that static Logger variables are not allowed, then
>the approach of setting the repository each time is reasonable
>although it might be wasteful. If we know that there will be one
>LoggerRepository per application we might as well take advantage of
>that knowledge.

Good point, I need to cater for static instantiation of Loggers.
I'm not sure I understand the last part, unless you are saying all
loggers should be static and created during class loading?

The interceptor technology within JBoss means the switching of
repository on method calls can be optionally configured by the deployer
for applications that need it, i.e. loggers created within the
business methods.

I'll have to think about this some more. What about Loggers created
in the constructor when preloading a pool or deserialization code for
objects sent over the wire?

The static final Logger, is the most likely for enterprise beans.
All static fields have to be read-only in the spec, and it
doesn't really form part of the bean's state.

Re: Configuration
This is a grey area to me.
My only thought is that the deployer chooses the repositories.

They may choose:
A) to run everything using the JBoss repository i.e. as now
B) one repository per application
C) have just two repositories one for JBoss and one for applications
D) a mixture of the above

Re: Category -> Logger
One question I missed from my original e-mail but I made an assumption. The 
new processing will only work with the
Logger class, not Category. I've started going through the JBoss
code removing direct references to Category in preparation
for cutover to 1.2. We have a Logger class that extends Category
at the moment.

I hope I understand the rest. Thanks again.

Regards,
Adrian

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to