How Do I Create a Custom Deployer in JBoss EAP 5.x

Solution Verified - Updated -

Environment

  • JBoss Enterprise Application Platform (EAP) 5.x

Issue

  • We want to create our own deployer for our own archive type

  • We have created a custom deployer by extending the SubDeployerSupport using EAP 4.x, but this custom deployer is not working in Jboss 5 (the create method is never called by the server).

Resolution

The deployment framework is invoked through various lifecycle stages and is done "breadth-first", meaning that all given deployments are handled for particular deployment stage first, then all deployments advance to the next stage.

Attached to this solution are deployer examples

  • check-fully-installed.jar - a deployer that runs in the Real deployment state.
  • PostInstallDeployer - prints out deployments that are encountered and also shows how you can create a new deployment state after the Install state called PostInstall.

Diagnostic Steps

If you have created a custom deployer, by extending the SubDeployerSupport using EAP 4.x, but the custom deployer is not working in Jboss 5 (the create method is never called by the server):

  • your custom deployer may be triggering on an early lifecycle stage
  • there could be other issues.

Do you set the deployment stage in your custom deployer?
Open a support ticket should you wish to have this investigated further

Attachments

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.