[jboss-cvs] JBossAS SVN: r74355 - trunk/ejb3/src/main/org/jboss/ejb3/deployers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jun 10 10:50:17 EDT 2008
Author: wolfc
Date: 2008-06-10 10:50:17 -0400 (Tue, 10 Jun 2008)
New Revision: 74355
Modified:
trunk/ejb3/src/main/org/jboss/ejb3/deployers/Ejb3Deployer.java
Log:
EJBTHREE-1359: different hack to determine if unit is an EAR
Modified: trunk/ejb3/src/main/org/jboss/ejb3/deployers/Ejb3Deployer.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/deployers/Ejb3Deployer.java 2008-06-10 13:19:18 UTC (rev 74354)
+++ trunk/ejb3/src/main/org/jboss/ejb3/deployers/Ejb3Deployer.java 2008-06-10 14:50:17 UTC (rev 74355)
@@ -146,7 +146,8 @@
scope = (JBoss5DeploymentScope) parent.getAttachment(DeploymentScope.class);
if (scope == null)
{
- boolean isEar = unit != unit.getTopLevel();
+ // FIXME: make a proper determination if this unit is an ear
+ boolean isEar = unit.getSimpleName().endsWith(".ear");
if(parent.isAttachmentPresent(DeploymentEndpointResolver.class) == true)
scope = new JBoss5DeploymentScope(parent, isEar);
else
More information about the jboss-cvs-commits
mailing list