[jboss-dev-forums] [Design of POJO Server] - Re: EJB/War deployer ordering problem
alesj
do-not-reply at jboss.com
Fri Feb 1 18:11:55 EST 2008
"alesj" wrote :
| Where in our case we have two seperate deployments - application and -ds.xml file.
|
I've added a comparator to MainDeployerImpl's top DeploymentContexts for process method.
| if (undeploy.isEmpty() == false)
| {
| // Undeploy in reverse order (subdeployments first)
| undeployContexts = new ArrayList<DeploymentContext>(undeploy.size());
| for (int i = undeploy.size() - 1; i >= 0; --i)
| undeployContexts.add(undeploy.get(i));
| Collections.sort(undeployContexts, reverted);
| undeploy.clear();
| }
| if (deploy.isEmpty() == false)
| {
| deployContexts = new ArrayList<DeploymentContext>(deploy);
| Collections.sort(deployContexts, comparator);
| deploy.clear();
| }
|
and also a way to set relative order of the context info (which then translates to relative order of deployment context) in StructureDeployer.
>From AbstractStructureDeployer.createContext():
| if (result != null && contextInfoOrder != null)
| result.setRelativeOrder(contextInfoOrder);
|
So, now by setting contexInfoOrder property on FileStructure and WarStructure we can push -ds.xml before Seam .ear (and its .war).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125697#4125697
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125697
More information about the jboss-dev-forums
mailing list