You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by falom <fa...@yahoo.com.cn> on 2007/01/15 03:56:23 UTC
[Axis2] purpose of using different classloaders
Hi,
This may be a basic thing to understand, but someone please help me to explain why Axis2 uses different classloaders for services under Tomcat or some other servlet containers. What is the major reason behind it.
falom
---------------------------------
抢注雅虎免费邮箱-3.5G容量,20M附件!
[Axis2]RE: RE: purpose of using different classloaders
Posted by falom <fa...@yahoo.com.cn>.
Thanks Yamini,
Can that be accomplished using same classloader class, but with different classloader instances?
falom
"Hemanth, Yamini (MSAS Sys Dev IBD)" <Ya...@morganstanley.com> wrote:
Hi,
Consider the situation where two different services want to use two different versions of a third party library.If the two versions of the same jar(xyz-1.1.jar and xyz-1.2.jar) are put in the same location ,both the versions cannot be initialised in one JVM since the fully qualified names of the two classes are the same in both the versions. The only way to achieve this is to use seperate class loading mechanisms.If you want to use two versions of the same third party library then put them into service archive file so that the two services will be able to load without having any problems.
Regards,
Yamini
---------------------------------
From: falom [mailto:falom2008@yahoo.com.cn]
Sent: Monday, January 15, 2007 8:26 AM
To: axis-user@ws.apache.org
Subject: [Axis2] purpose of using different classloaders
Hi,
This may be a basic thing to understand, but someone please help me to explain why Axis2 uses different classloaders for services under Tomcat or some other servlet containers. What is the major reason behind it.
falom
---------------------------------
抢注雅虎免费邮箱-3.5G容量,20M附件!
---------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
---------------------------------
Mp3疯狂搜-新歌热歌高速下
RE: [Axis2] purpose of using different classloaders
Posted by "Hemanth, Yamini (MSAS Sys Dev IBD)" <Ya...@morganstanley.com>.
Hi,
Consider the situation where two different services want to use two different versions of a third party library.If the two versions of the same jar(xyz-1.1.jar and xyz-1.2.jar) are put in the same location ,both the versions cannot be initialised in one JVM since the fully qualified names of the two classes are the same in both the versions. The only way to achieve this is to use seperate class loading mechanisms.If you want to use two versions of the same third party library then put them into service archive file so that the two services will be able to load without having any problems.
Regards,
Yamini
________________________________
From: falom [mailto:falom2008@yahoo.com.cn]
Sent: Monday, January 15, 2007 8:26 AM
To: axis-user@ws.apache.org
Subject: [Axis2] purpose of using different classloaders
Hi,
This may be a basic thing to understand, but someone please help me to explain why Axis2 uses different classloaders for services under Tomcat or some other servlet containers. What is the major reason behind it.
falom
________________________________
抢注雅虎免费邮箱-3.5G容量,20M附件! <http://cn.mail.yahoo.com>
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.