private void processMessageDestinations(final MessageDestinationsMetaData destinations, final EEModuleDescription eeModuleDescription) { for(final MessageDestinationMetaData destination : destinations) { //TODO: should these be two separate metadata attributes? if(destination.getJndiName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getJndiName()); } else if(destination.getLookupName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getLookupName()); } } }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) { final EarMetaData metadata = deploymentUnit.getAttachment(Attachments.EAR_METADATA); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION); if (metadata != null) { if (metadata.getEarEnvironmentRefsGroup() != null) { if (metadata.getEarEnvironmentRefsGroup().getMessageDestinations() != null) { for (final MessageDestinationMetaData destination : metadata.getEarEnvironmentRefsGroup().getMessageDestinations()) { //TODO: should these be two separate metadata attributes? if (destination.getJndiName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getJndiName()); } else if (destination.getLookupName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getLookupName()); } } } } } } }
private String getMessageDestinationJNDIName(String name) { MessageDestinationMetaData dest = messageDestinations.get(name); if(dest != null) return dest.getJndiName(); return null; }
private void processMessageDestinations(final MessageDestinationsMetaData destinations, final EEModuleDescription eeModuleDescription) { for(final MessageDestinationMetaData destination : destinations) { //TODO: should these be two separate metadata attributes? if(destination.getJndiName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getJndiName()); } else if(destination.getLookupName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getLookupName()); } } }
else String linkJNDIName = messageDestination.getJndiName(); if (linkJNDIName == null) log.warn("message-destination '" + link + "' has no jndi-name in jboss-web.xml");
private void addMessageDestinationAnnotations(EJBContainer container, MessageDestinationReferencesMetaData refs) { if(refs == null) return; for(MessageDestinationReferenceMetaData ref : refs) { if (ref.getMappedName() == null || ref.getMappedName().equals("")) { JBossAssemblyDescriptorMetaData descriptor = dd.getAssemblyDescriptor(); if (descriptor != null) { MessageDestinationMetaData destination = descriptor.getMessageDestination(ref.getLink()); if (destination != null) { ref.setMappedName(destination.getJndiName()); } } } } }
if (destinationMetaData == null) throw new DeploymentException("Unresolved message-destination-link '" + link + "' no message-destination in ejb-jar.xml"); String jndiName = destinationMetaData.getJndiName(); if (jndiName == null) throw new DeploymentException("The message-destination '" + link + "' has no jndi-name in jboss.xml");
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) { final EarMetaData metadata = deploymentUnit.getAttachment(Attachments.EAR_METADATA); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION); if (metadata != null) { if (metadata.getEarEnvironmentRefsGroup() != null) { if (metadata.getEarEnvironmentRefsGroup().getMessageDestinations() != null) { for (final MessageDestinationMetaData destination : metadata.getEarEnvironmentRefsGroup().getMessageDestinations()) { //TODO: should these be two separate metadata attributes? if (destination.getJndiName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getJndiName()); } else if (destination.getLookupName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getLookupName()); } } } } } } }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) { final EarMetaData metadata = deploymentUnit.getAttachment(Attachments.EAR_METADATA); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION); if (metadata != null) { if (metadata.getEarEnvironmentRefsGroup() != null) { if (metadata.getEarEnvironmentRefsGroup().getMessageDestinations() != null) { for (final MessageDestinationMetaData destination : metadata.getEarEnvironmentRefsGroup().getMessageDestinations()) { //TODO: should these be two separate metadata attributes? if (destination.getJndiName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getJndiName()); } else if (destination.getLookupName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getLookupName()); } } } } } } }
@Override public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); if (DeploymentTypeMarker.isType(DeploymentType.EAR, deploymentUnit)) { final EarMetaData metadata = deploymentUnit.getAttachment(Attachments.EAR_METADATA); final EEModuleDescription eeModuleDescription = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.EE_MODULE_DESCRIPTION); if (metadata != null) { if (metadata.getEarEnvironmentRefsGroup() != null) { if (metadata.getEarEnvironmentRefsGroup().getMessageDestinations() != null) { for (final MessageDestinationMetaData destination : metadata.getEarEnvironmentRefsGroup().getMessageDestinations()) { //TODO: should these be two separate metadata attributes? if (destination.getJndiName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getJndiName()); } else if (destination.getLookupName() != null) { eeModuleDescription.addMessageDestination(destination.getName(), destination.getLookupName()); } } } } } } }
else String linkJNDIName = messageDestination.getJndiName(); if (linkJNDIName == null) log.warn("message-destination '" + link + "' has no jndi-name in jboss.xml");