Bugs item #849786, was opened at 2003-11-26 18:10
Message generated for change (Comment added) made by cazzius
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=849786&group_id=22866
Category: JBossServer
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Claudio Vesco (cazzius)
Assigned to: Claudio Vesco (cazzius)
Summary: ejb - sar depends
Initial Comment:
When there are complex dependencies between ejbs and
sar, the Container services are not properly destroyed.
Tested on jboss 3.2 branch but I think this problem is in
jboss head branch.
Description:
ear/
__eardependsaejb.jar <-- 2 ejb which depends on sar
eardependsmbean.sar
__eardependsbejb.jar <-- 1 ejb independent
__eardependsmbean.sar <-- a service which depends on
eardependsbejb.jar
when the ear is undeployed can happen:
1. destruction of independent ejb module
1.1. destruction of independent ejb container (by
EjbModule)
1.2. destruction of service (by ServiceController,
dependency)
1.3. destruction of dependent ejb containers (by
ServiceController, dependency)
2. destruction of dependent ejb module
the containers are already destroyed
the containers stay registered recording dependencies
3. destruction of service
the service is already destroyed
The problem cannot be easily tracked because if the
destroy order is [dependent ejb module, independent ejb
module, service] the EjbModule can destroy the
containers.
I think there is another little problem: the order of
deployment/undeployment of ear modules is not the
same between different redeploys. This because
DeploymentInfo.subDeployments is a HashSet.
I have the testcase in my cvs repository ready for the
commit but for better tracking this bug (and I think
others) I need the deploy order to be fixed with a little
patch in DeploymentSorter, for example:
public int compare(Object o1, Object o2)
{
URL url1 = (URL) o1;
URL url2 = (URL) o2;
int result = getExtensionIndex(url1) -
getExtensionIndex(url2);
if (result == 0)
{
result = url1.getPath().compareTo(url2.getPath());
}
return result;
}
----------------------------------------------------------------------
>Comment By: Claudio Vesco (cazzius)
Date: 2003-11-28 13:59
Message:
Logged In: YES
user_id=211618
it is also in jboss head
----------------------------------------------------------------------
Comment By: Claudio Vesco (cazzius)
Date: 2003-11-26 18:48
Message:
Logged In: YES
user_id=211618
see test
org.jboss.test.jmx.test.EarDeploymentUnitTestCase.testEarDep
ends
The test can not fail. It fail always if the DeploymentSorter is
patched.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=849786&group_id=22866
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development