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


JavaRanch » Java Forums » Products » Websphere
Reply 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: 4967

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


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Question on ClassLoaders
 
Similar Threads
Accessing a jsp from a war file
Do I need to combine two .war files to speed up my App?
Loading multiple log4j.xml files
deploying two identical webapps independently
How to connect cross domain call in struts