This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Class Loading Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Class Loading Question " Watch "Class Loading Question " New topic
Author

Class Loading Question

asdasd asddad
Greenhorn

Joined: May 09, 2005
Posts: 1
i am facing a problem where i currently dont have a test condition , unless i change a development box , which will affect all developers.
If any one has come accross the below condition before.Could you please clarify on what would happen??

1)I am working on Websphere App server 4.0
2)Default delegation mode for all ears on this servers has been set
to "Parent_Last".
3)Lets consider a jar ( name as ranch.jar for easy understanding)
This jar is present both in the ear and in the app extension directory
i.e lib/app.
Diagram :

App Ext Class loader ( lib/app ) --> ranch.jar
|
|
|
V
Application Class Loader ( ear ) --> ranch.jar

If i create a class say "Moose" ( which is contained in the ranch.jar
only) in lib/app
and send it to ear.
What will happen
1) i will get a class loader visibilty exception?
2) i wont get any exceptions it will work .

Your inputs would be greatly appreciated.

Thanks,
Samir.
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi,

Check this article:
http://www.theserverside.com/articles/article.tss?l=ClassLoading
Regards


I think, therefore I exist -- Rene Descartes
 
GeeCON Prague 2014
 
subject: Class Loading Question