[jboss-cvs] JBossAS SVN: r82534 - projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 23 13:34:08 EST 2008
Author: alesj
Date: 2008-12-23 13:34:07 -0500 (Tue, 23 Dec 2008)
New Revision: 82534
Modified:
projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java
Log:
Simplify.
Modified: projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java
===================================================================
--- projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java 2008-12-23 17:48:23 UTC (rev 82533)
+++ projects/webbeans-ri-int/trunk/jbossas/src/main/java/org/jboss/webbeans/integration/jbossas/ejb3/EjbDiscoveryEnvironment.java 2008-12-23 18:34:07 UTC (rev 82534)
@@ -47,13 +47,7 @@
ejbs = new ArrayList<EjbDescriptor<?>>();
DeploymentUnit du = duConnector.getUtility();
- DeploymentUnit top = du;
- while (top != null)
- {
- du = top;
- top = top.getParent();
- }
- discoverEjbs(du);
+ discoverEjbs(du.getTopLevel());
}
/**
More information about the jboss-cvs-commits
mailing list