Class EjbJarParsingDeploymentUnitProcessor

  • All Implemented Interfaces:
    org.jboss.as.server.deployment.DeploymentUnitProcessor

    public class EjbJarParsingDeploymentUnitProcessor
    extends Object
    implements org.jboss.as.server.deployment.DeploymentUnitProcessor
    Processes a DeploymentUnit containing an ejb-jar.xml and creates EjbJarMetaData for that unit.

    This deployment unit processor looks for ejb-jar.xml in META-INF of a .jar and WEB-INF of a .war file. If it finds the ejb-jar.xml in these locations, it parses that file and creates EjbJarMetaData out of it. The EjbJarMetaData is then attached to the DeploymentUnit with EjbDeploymentAttachmentKeys.EJB_JAR_METADATA as the key.

    Author: Jaikiran Pai

    • Constructor Detail

      • EjbJarParsingDeploymentUnitProcessor

        public EjbJarParsingDeploymentUnitProcessor()
    • Method Detail

      • deploy

        public void deploy​(org.jboss.as.server.deployment.DeploymentPhaseContext deploymentPhase)
                    throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
        Finds an ejb-jar.xml (at WEB-INF of a .war or META-INF of a .jar) parses the file and creates metadata out of it. The metadata is then attached to the deployment unit.
        Specified by:
        deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
        Parameters:
        deploymentPhase -
        Throws:
        org.jboss.as.server.deployment.DeploymentUnitProcessingException