aspose file tools*
The moose likes Websphere and the fly likes Question on ClassLoaders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Question on ClassLoaders" Watch "Question on ClassLoaders" New topic
Author

Question on ClassLoaders

Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
Hi,

I want to on how websphere app. server will handle this issue
If I have two projects A & B deployed as two different war files a.war and b.war files to the same app. server.
a.war file has lib/hibernate/hibernate3.jar
b.war file has lib/hibernate/hibernate2.jar

both the projects use hibernate api. My question is does app. server load both the jar files and execute each jar against each project? or does it load only one jar file and both project uses the same jar file??

Thanks in advance
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Just so you know, with a standard classloader configuration, each war file will use its own set of jar files, so one will use h2, the other will use h3.

Here's a tutorial on Understanding WebSphere Classloaders for more information

Cheers!

-Cameron McKenzie
Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
Thanks a lot. Really a very good resource.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on ClassLoaders