|
Re: AW: MultiClassLoader changes: msg#00020java.enhydra.general
Hi Alfred, The scenario as I said in my earlier mail was basically to deal with access to global objects. Now if you look at the enhydra application, you can specify the path to a class in two different places. One in the local classpath to multiserver and then in the configuration file of the enhydra application. If a war needs to be able to access a class then it has to be specified in the classpath, and if the enhydra application needs access to a class it has to be specified in the conf file. If for example, you use Barracuda's objectRepository, you expect that this repository (global) is available to all servlets and wars running under enhydra. But that was not the case. I was getting an entirely different reference to the repository when I access it from enhydra application. This we figured was because of the class loading happening twice by two different classloaders which were not connected and hence the class was in different namespaces. If multiclassloader were to allow its parent to load the class before it tried to load, this wouldnot happen. If you look into the code instantiating the multiclassloader, the parent classloader is always set to null. This change is done to avoid the parent being set to null so that a single classloader loads all the classes that are specified outside the namespaces of enhydra application as well as those that are specified in both places. So if a single classloader loads the class, then the global objects like objectRepository can be accessed by all applications running under enhydra multiserver. Hope this helps. Thanks, Srini. P.S: Please note that I am talking about enhydra 3.1.1 Madl Alfred wrote: Hi Srini !
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Can I load a JSP from Enhydra admin console?, Sinisa Milosevic |
|---|---|
| Next by Date: | AW: AW: MultiClassLoader changes, Madl Alfred |
| Previous by Thread: | AW: MultiClassLoader changes, Madl Alfred |
| Next by Thread: | Can I load a JSP from Enhydra admin console?, Lee Zhou |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |