/** * Get the destination jndi name * * @return the jndi name */ public String getDestinationJndiName() { return getDelegate().getDestinationJndiName(); }
@Override protected String getDefaultInvokerJndiName() { return getEjbName(); }
/** * Get the resource adapter name * * @return the resource adapter name or null if none specified */ public String getResourceAdapterName() { return getDelegate().getResourceAdapterName(); }
if (mdb.getResourceAdapterName() != null) ResourceAdapter adapter = new ResourceAdapterImpl(mdb.getResourceAdapterName()); addClassAnnotation(container, ResourceAdapter.class, adapter); if (mdb.isJMS()) if (mdb.getAcknowledgeMode() != null) properties.add(new ActivationConfigPropertyImpl("acknowledgeMode", mdb.getAcknowledgeMode())); if(mdb.getMessageDestinationType() != null) properties.add(new ActivationConfigPropertyImpl("destinationType", mdb.getMessageDestinationType())); SubscriptionDurability subscriptionDurability = mdb.getSubscriptionDurability(); if(subscriptionDurability != null) if (mdb.getDestinationJndiName() != null) .getDestinationJndiName())); else if(mdb.getMessageDestinationLink() != null) if (mdb.getMdbSubscriptionId() != null) .getMdbSubscriptionId())); if (mdb.getMdbUser() != null)
JBossMessageDrivenBeanMetaData jbossMessageBean = (JBossMessageDrivenBeanMetaData)jbossBeansMetaData; targetBean.setEjbName(jbossMessageBean.getEjbName()); targetBean.setEjbClass(jbossMessageBean.getEjbClass()); ((MDBMetaData)targetBean).setDestinationJndiName(jbossMessageBean.getDestinationJndiName());
String raName = messageDrivenBean.getResourceAdapterName(); messageDrivenBean.setResourceAdapterName(this.defaultResourceAdapterName); if (logger.isTraceEnabled()) + " for message driven bean " + messageDrivenBean.getEjbName());
protected MDB getMDB(int ejbIndex, JBossMessageDrivenBeanMetaData beanMetaData) throws Exception { String domainName = getMDBDomainName(ejbIndex); String containerName = getAspectDomain(ejbIndex, domainName); DomainDefinition domain = AspectManager.instance().getContainer(containerName); if (domain == null) { throw new RuntimeException("Could not get container for bean class " + beanMetaData.getEjbClass() + " with bean name " + beanMetaData.getEjbName() + " because no container configured with name '" + containerName + "'"); } MDB container = new MDB(ejbNames.get(ejbIndex), (Domain) domain.getManager(), di.getClassLoader(), className, ctxProperties, deployment, beanMetaData); // EJB 3.0 5.6.3: the class or any super-class may implement the ejbCreate method Method method = getMethod(container.getBeanClass(), "ejbCreate"); if(method != null) { addAnnotation(new PostConstructImpl(), container, method); } return container; }
if (joverride != null && joverride.getActivationConfig() != null) jbossActivationConfig = joverride.getActivationConfig(); ActivationConfigMetaData originalActivationConfig = null; if(soriginal != null) subscriptionDurability = soriginal.getSubscriptionDurability(); if(joverride != null && joverride.getDestinationJndiName() != null) destinationJndiName = joverride.getDestinationJndiName(); else if(soriginal != null && soriginal.getMappedName() != null) destinationJndiName = soriginal.getMappedName();
public boolean isMatch(DeploymentUnit unit, JBossMessageDrivenBeanMetaData mdb) throws DeploymentException { if (noMatch(messageListener, mdb.getMessagingType(), isDefault())) return false; if (noMatch(rarName, mdb.getResourceAdapterName(), isDefault())) return false; return true; }
/** * Is this JMS * * @return true for jms */ public boolean isJMS() { String messagingType = getMessagingType(); return messagingType == null || "javax.jms.MessageListener".equals(messagingType); }
/** * Get all the activation config properties * * @return a collection of ActivationConfigPropertyMetaData elements */ public HashMap<String, ActivationConfigPropertyMetaData> getActivationConfigProperties() { HashMap<String, ActivationConfigPropertyMetaData> result = new LinkedHashMap<String, ActivationConfigPropertyMetaData>(); ActivationConfigMetaData config = getDelegate().getActivationConfig(); if (config != null) { ActivationConfigPropertiesMetaData properties = config.getActivationConfigProperties(); if (properties != null) { for (org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData property : properties) result.put(property.getName(), new ActivationConfigPropertyMetaData(property)); } } return result; }
/** * Get the password * * @return the password */ public String getPasswd() { return getDelegate().getMdbPassword(); }
String ack = getDelegate().getAcknowledgeMode(); if (ack == null || ack.equalsIgnoreCase("Auto-acknowledge") || ack.equalsIgnoreCase("AUTO_ACKNOWLEDGE")) return AUTO_ACKNOWLEDGE_MODE;
JBossMessageDrivenBeanMetaData jbossMessageBean = (JBossMessageDrivenBeanMetaData)jbossBeansMetaData; targetBean.setEjbName(jbossMessageBean.getEjbName()); targetBean.setEjbClass(jbossMessageBean.getEjbClass()); ((MDBMetaData)targetBean).setDestinationJndiName(jbossMessageBean.getDestinationJndiName());
/** * Is this JMS * * @return true for jms */ public boolean isJMS() { String messagingType = getMessagingType(); return messagingType == null || "javax.jms.MessageListener".equals(messagingType); }
/** * Get all the activation config properties * * @return a collection of ActivationConfigPropertyMetaData elements */ public HashMap<String, ActivationConfigPropertyMetaData> getActivationConfigProperties() { HashMap<String, ActivationConfigPropertyMetaData> result = new LinkedHashMap<String, ActivationConfigPropertyMetaData>(); ActivationConfigMetaData config = getDelegate().getActivationConfig(); if (config != null) { ActivationConfigPropertiesMetaData properties = config.getActivationConfigProperties(); if (properties != null) { for (org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData property : properties) result.put(property.getName(), new ActivationConfigPropertyMetaData(property)); } } return result; }
/** * Get the password * * @return the password */ public String getPasswd() { return getDelegate().getMdbPassword(); }
String ack = getDelegate().getAcknowledgeMode(); if (ack == null || ack.equalsIgnoreCase("Auto-acknowledge") || ack.equalsIgnoreCase("AUTO_ACKNOWLEDGE")) return AUTO_ACKNOWLEDGE_MODE;
JBossMessageDrivenBeanMetaData jbossMessageBean = (JBossMessageDrivenBeanMetaData)jbossBeansMetaData; targetBean.setEjbName(jbossMessageBean.getEjbName()); targetBean.setEjbClass(jbossMessageBean.getEjbClass()); ((MDBMetaData)targetBean).setDestinationJndiName(jbossMessageBean.getDestinationJndiName());
/** * Get the destination jndi name * * @return the jndi name */ public String getDestinationJndiName() { return getDelegate().getDestinationJndiName(); }