JBoss Community

Custom Deployer - migrate from JBoss4.2

created by Mikhail Kolesnikov in JBoss Microcontainer - View the full discussion

In JBoss4 there is a class org.jboss.deployment.SubDeployerSupport

Using this class I'm develop custom deployer, that now used in development and production too.

 

In that deployer I'm override method

protected void processNestedDeployments(DeploymentInfo di)

and some other methods too.

 

Using internal config file deployment.xml I'm sort and filter subdeployments as needed by business requirements. Obtain information about deployed package and deployment status. I'm create MBean for obtain information about sub-deployments via JMX console. And more other things...

 

Now our team planned to migrate on JBoss5 (may be 6). And I see that SubDeployerSupport is comletely not usefull in JBoss 5 and later.

 

I'm trying to use classes:

  • org.jboss.deployers.spi.deployer.helpers.AbstractDeployer
  • org.jboss.deployers.vfs.plugins.structure.AbstractVFSStructureDeployer

With some settings such as:

  • setStage(DeploymentStages.INSTALLED);
  • setStage(DeploymentStages.PRE_REAL);
  • setRelativeOrder(...);

With a combination of such parameters I'm can obtain deployment status and list of deployments. But I'm still can't sort and filter subdeployments!

 

The question was: how I must use Deployer in JBoss5 (6) for sort and filter subdeployments?

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer at Community