Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
cmbhatt
cmbhatt
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
cmbhatt
and both of these call the same Servlet class when hit (except the servlet exists in each webapp/WEB_INF/classes dir)
[My Blog]
All roads lead to JavaRanch
[My Blog]
All roads lead to JavaRanch
Measure twice cut once carpenter theory <br /> <br />Baiju <br />SCJCP, SCBCD, IBM-486, IBM-484, SCEA Part I
But there are problems. If the servlet reading any context/initial values it wont differ for different application context. It will be same for the server.
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Originally posted by Baiju Varugese:
Hi,
Srinivasan thoyyeti
I feel Thats container Dependant.
Yes it is container dependent. JBoss uses Unified Class Loader, which loads class only once. We can disable this also.
Srinivasan thoyyeti
I don't see any problem in creating Only one instance re-using the same for other web-apps also.
But there are problems. If the servlet reading any context/initial values it wont differ for different application context. It will be same for the server.
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Thanks & Regards, T.Srinivasan
SCWCD 1.4(89%), SCJP 5.0(75%)
Originally posted by Raghavan Muthu:
But, what if there are classes in two *different* web application residing in the same container happen to have the *same name* ?
Any J2EE product must be able to accept a J2EE application delivered as a .ear file or a stand-alone J2EE module delivered as a .jar,.war, or .rar file (as appropriate to its type). If the application is delivered as a .ear, an enterprise bean module devliered as a .jar file, or a web application delivered as a .war file, the deployment tool must be able to deploy the application such that the Java classes in the application are in a separate namespace from classes in other Java applications. Typically this will require the use of a separate class loader for each application.
SCJP, OCMJD, OCMJEA
Originally posted by Louis Moloney:
[qb]hi guys just lookin for an old freind called louis moloney who lived in Ireland.
[ August 24, 2007: Message edited by: kieran duggan ]
[ August 24, 2007: Message edited by: kieran duggan ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |