@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { // get the deployment unit final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); // find the EJB jar metadata and start processing it final EjbJarMetaData ejbJarMetaData = deploymentUnit.getAttachment(EjbDeploymentAttachmentKeys.EJB_JAR_METADATA); if (ejbJarMetaData == null) { return; } // process assembly-descriptor stuff final AssemblyDescriptorMetaData assemblyDescriptor = ejbJarMetaData.getAssemblyDescriptor(); if (assemblyDescriptor != null) { // get hold of the ejb jar description (to which we'll be adding this assembly description metadata) final EjbJarDescription ejbJarDescription = deploymentUnit.getAttachment(EjbDeploymentAttachmentKeys.EJB_JAR_DESCRIPTION); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); // process security-role(s) this.processSecurityRoles(assemblyDescriptor.getSecurityRoles(), ejbJarDescription); final MessageDestinationsMetaData destinations = assemblyDescriptor.getMessageDestinations(); if(destinations != null) { processMessageDestinations(destinations, eeModuleDescription); } } }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { // get the deployment unit final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); // find the EJB jar metadata and start processing it final EjbJarMetaData ejbJarMetaData = deploymentUnit.getAttachment(EjbDeploymentAttachmentKeys.EJB_JAR_METADATA); if (ejbJarMetaData == null) { return; } // process assembly-descriptor stuff final AssemblyDescriptorMetaData assemblyDescriptor = ejbJarMetaData.getAssemblyDescriptor(); if (assemblyDescriptor != null) { // get hold of the ejb jar description (to which we'll be adding this assembly description metadata) final EjbJarDescription ejbJarDescription = deploymentUnit.getAttachment(EjbDeploymentAttachmentKeys.EJB_JAR_DESCRIPTION); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(Attachments.EE_MODULE_DESCRIPTION); // process security-role(s) this.processSecurityRoles(assemblyDescriptor.getSecurityRoles(), ejbJarDescription); final MessageDestinationsMetaData destinations = assemblyDescriptor.getMessageDestinations(); if(destinations != null) { processMessageDestinations(destinations, eeModuleDescription); } } }
messageDestinationsMetaData = original.getMessageDestinations();
messageDestinationsMetaData = original.getMessageDestinations();