Bugs item #652411, was opened at 2002-12-12 00:48
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=652411&group_id=22866
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Adam Heath (doogie)
Assigned to: Nobody/Anonymous (nobody)
Summary: Classloader sharing with MANIFEST
Initial Comment:
I have 2 ears, that both need to use ofbiz. The
configuration of ofbiz in each is mostly identical,
except for the database name. OFBiz uses static
factory methods to fetch preconfigured(cached) objects
from class-static maps. These objects are created with
a static{} block in the class, by using data from the
default(whatever that is for the JVM) classloader.
When I deploy both of these 2 ears, only the first one
deployed has the static block run, and the second ends
up sharing the same class instances. I know that the
J2EE spec allows for this, but this seems
non-intuitive. Is there a way to disable it?
I also have a fairly simple way to reproduce it.
Please read create.sh in the attached file.
I have tried this first with jboss 3.2.0-beta2, tomcat
4.1.12, and jboss 3.0.4, jetty. Neither compiled from
source, both using the pre-compiled versions downloaded
from sourceforge. I have run both under ibm jdk
1.3(Classic VM (build 1.3.0, J2RE 1.3.0 IBM build
cx130-20020124 (JIT enabled: jitc)), and jboss
3.2.0-beta2 under blackdown 1.4(Java HotSpot(TM) Client
VM (build Blackdown-1.4.1-beta, mixed mode)).
----------------------------------------------------------------------
>Comment By: Adam Heath (doogie)
Date: 2002-12-12 00:49
Message:
Logged In: YES
user_id=9692
Stupid sf code didn't take the file. :|
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=652411&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development