How to get the class loader ObjectName from a JavaEE application under JBoss 5.x?

Found this documentation for the issue: ClassLoader Configuration Classloading UseCase Nice to get an insight view. Finally a nice Forum Thread I found: coderanch.com/t/464514/JBoss/Class-Loadi... Additional Info: ClassLoader loader = Thread.currentThread(). GetContextClassLoader(); System.out.

Println( loader ); // sun.misc. Launcher$AppClassLoader@a12a00 loader = ThreadClassloader.class.getClassLoader(); System.out. Println( loader ); // sun.misc.

Launcher$AppClassLoader@a12a00 Hpe this helps you to get more Information out of your code.

This is no exactly the answer to my question, but the thread your provided address my another issue. So thank you anyway :-) – Maxim Vladimirsky Oct 16 '09 at 11:21 :-) alright then. – bastianneu Oct 16 '09 at 12:09.

After doing a little bit of research on the subject I got an answer to my question. Though I do not like it very much for it looks more like another hack. But I will use it unless somebody suggests a more elegant solution.So: In JBoss 5.1.0 (the one I am playing with) class loaders are registered with names like: jboss.

Classloader:id="vfsfile:" At the same time the string representation of a class loader object returned by the toString() method looks like this: BaseClassLoader@{vfsfile:} Therefore it is possible to extract the archive-file-name from the class loader string representation and construct an appropriate ObjectName from it.

Wow...looks really complicated...but it works at least. – bastianneu Oct 16 '09 at 12:10.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions