@Override public boolean isEJB1x() { return primary.isEJB1x(); }
@Override public boolean isEJB1x() { return primary.isEJB1x(); }
public boolean isEJB1x() { return delegate.isEJB1x(); }
public boolean isEJB1x() { return delegate.isEJB1x(); }
/** * Whether this is ejb1.x * * @return true when ejb1.x */ public boolean isEJB1x() { return getDelegate().isEJB1x(); }
/** * Whether this is ejb1.x * * @return true when ejb1.x */ public boolean isEJB1x() { return getDelegate().isEJB1x(); }
/** * @return Returns true if either the passed <code>ejbJarMetadata</code> or the <code>jbossMetadata</code> * represents a EJB2.x or EJB1.x deployment * * @param ejbJarMetadata ejb-jar metadata * @param jbossMetadata jboss metadata * */ private boolean isPreEJB3x(EjbJarMetaData ejbJarMetadata, JBossMetaData jbossMetadata) { if (ejbJarMetadata != null && (ejbJarMetadata.isEJB2x() || ejbJarMetadata.isEJB1x())) { return true; } if (jbossMetadata != null && (jbossMetadata.isEJB2x() || jbossMetadata.isEJB1x())) { return true; } return false; }
@Override public void checkValid() { // Allow for relaxation of JBMETA-11 check to counter JBCTS-540 hack if(System.getProperty("org.jboss.metadata.jbmeta11") != null) return; if(getEnterpriseBeansMetaData() != null && getEjbJarMetaData() != null) { // this is how the ejb3 deployer determines whether it's ejb3 module or not if(!(getEjbJarMetaData().isEJB1x() || getEjbJarMetaData().isEJB2x())) { if(this.home == null && this.homeJndiName != null) throw new IllegalStateException( "EJB3 bean " + getEjbName() + " doesn't define home interface but defines home-jndi-name '" + this.homeJndiName + "' in jboss.xml"); if(this.localHome == null && this.localHomeJndiName != null) throw new IllegalStateException( "EJB3 bean " + getEjbName() + " doesn't define local-home interface but defines local-home-jndi-name '" + this.localHomeJndiName + "' in jboss.xml"); } } } }
if (!deployment.isEJB2x() && !deployment.isEJB1x()) return; // let EJB3 deployer handle this