Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on ClassLoaders

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot. Really a very good resource.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic