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()); } } }
if(md.getMappedName() == null) ResourceEnvironmentReferenceMetaData ref = resEnvRefs.get(md.getMessageDestinationName()); if(ref != null) md.setMappedName(ref.getMappedName());
private String getMessageDestinationJNDIName(String name) { MessageDestinationMetaData dest = messageDestinations.get(name); if(dest != null) return dest.getJndiName(); return null; }
for(MessageDestinationMetaData dest : msgDestinations) String mappedName = dest.getMappedName(); String destName = dest.getMessageDestinationName(); if(mappedName == null || mappedName.length() == 0)
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getMappedName(); }
/** * Get the messageDestinationName. * * @return the messageDestinationName. */ public String getMessageDestinationName() { return getName(); }
public MessageDestinationResolver(DeploymentScope deploymentScope, MessageDestinationsMetaData mergedMessageDestinations) { this.deploymentScope = deploymentScope; if (mergedMessageDestinations != null) { for (MessageDestinationMetaData dest : mergedMessageDestinations) { messageDestinations.put(dest.getMessageDestinationName(), dest); } } // TODO Auto-generated constructor stub }
/** * Set the jndiName. * * @param jndiName the jndiName. * @throws IllegalArgumentException for a null jndiName */ @XmlElement(required=false) public void setJndiName(String jndiName) { setMappedName(jndiName); }
public MessageDestinationMetaData merge(MessageDestinationMetaData original) { MessageDestinationMetaData merged = new MessageDestinationMetaData(); merged.merge(this, original); return merged; }
if(md.getMappedName() == null) ResourceEnvironmentReferenceMetaData ref = resEnvRefs.get(md.getMessageDestinationName()); if(ref != null) md.setMappedName(ref.getMappedName());
else String linkJNDIName = messageDestination.getJndiName(); if (linkJNDIName == null) log.warn("message-destination '" + link + "' has no jndi-name in jboss-web.xml");
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getMappedName(); }
/** * Get the messageDestinationName. * * @return the messageDestinationName. */ public String getMessageDestinationName() { return getName(); }
/** * Get the destination name * * @return the destination name */ public String getName() { return getDelegate().getMessageDestinationName(); }
/** * Set the jndiName. * * @param jndiName the jndiName. * @throws IllegalArgumentException for a null jndiName */ //@SchemaProperty(mandatory=false) @XmlElement(required=false) public void setJndiName(String jndiName) { setMappedName(jndiName); }
public MessageDestinationMetaData merge(MessageDestinationMetaData original) { MessageDestinationMetaData merged = new MessageDestinationMetaData(); merged.merge(this, original); return merged; }
@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()); } } } } } } }
if(md.getMappedName() == null) ResourceEnvironmentReferenceMetaData ref = resEnvRefs.get(md.getMessageDestinationName()); if(ref != null) md.setMappedName(ref.getMappedName());
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()); } } } } }
/** * Get the jndi name * * @return the jndi name */ public String getJNDIName() { return getDelegate().getMappedName(); } }