[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - Dynamically reordering of deployers
thomas.diesler@jboss.com
do-not-reply at jboss.com
Thu Nov 2 04:49:10 EST 2006
The JAXWSDeployerJSE attempts to dynamically insert itself before the JBossWebAppParsingDeployer like this:
| public int getRelativeOrder()
| {
| if (relativeOrder == 0)
| {
| // Order this deployer before the JBossWebAppParsingDeployer
| KernelRegistryEntry entry = getKernel().getRegistry().getEntry(WEBAPP_DEPLOYER_NAME);
| if (entry == null)
| throw new IllegalStateException("Cannot obtain kernel entry: " + WEBAPP_DEPLOYER_NAME);
|
| Deployer webappDeployer = (Deployer)entry.getTarget();
| relativeOrder = webappDeployer.getRelativeOrder();
| webappDeployer.setRelativeOrder(relativeOrder + 1);
| }
| return relativeOrder;
| }
|
This however does not change the order in wich the deployers are invoked. Should dynamic reordering like this be possible?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982607#3982607
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982607
More information about the jboss-dev-forums
mailing list