Re: Static member question

2009-05-08 Thread Richard S. Hall
There is only one singleton because there is only one copy of the Configuration class in BundleA...assuming both Main and BundleB both import javax.security.auth.login (i.e., they don't have a private copy in their bundle) and they are both wired to the same provider of the package. -> richar

Re: Static member question

2009-05-10 Thread Rob Walker
Just to expand on Richard's explanation a little - * statics are global within the scope of their classloader So as Richard says, in your case since the class was loaded by one classloader, you'll still have a singleton across your JVM In a case where the same class appears in different bu

RE: Static member question

2009-05-11 Thread Sergey Shcherbakov
Hello everybody, Recently embedding Felix (Karaf) I ran into the exactly same issue: http://www.mail-archive.com/d...@felix.apache.org/msg04908.html While the solution with setting TCL to null works I was wondering whether this solution remains recommended one? The issue looks to be fixed also by