[jboss-cvs] JBossAS SVN: r63180 - trunk/ejb3/src/main/org/jboss/injection.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 22 07:12:55 EDT 2007
Author: wolfc
Date: 2007-05-22 07:12:55 -0400 (Tue, 22 May 2007)
New Revision: 63180
Modified:
trunk/ejb3/src/main/org/jboss/injection/ResourceHandler.java
Log:
EJBTHREE-971: bind ejb context as a link ref
Modified: trunk/ejb3/src/main/org/jboss/injection/ResourceHandler.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/injection/ResourceHandler.java 2007-05-22 11:12:12 UTC (rev 63179)
+++ trunk/ejb3/src/main/org/jboss/injection/ResourceHandler.java 2007-05-22 11:12:55 UTC (rev 63180)
@@ -460,10 +460,6 @@
{
injectors.put(accObj, new TimerServicePropertyInjector(property, (Container) container)); // only EJBs
}
- else if (EJBContext.class.isAssignableFrom(type))
- {
- injectors.put(accObj, new EJBContextPropertyInjector(property));
- }
else if (type.equals(WebServiceContext.class))
{
injectors.put(accObj, new WebServiceContextPropertyInjector(property));
@@ -521,6 +517,8 @@
// else
if(ORB.class.isAssignableFrom(type))
mappedName = "java:comp/ORB";
+ else if(EJBContext.class.isAssignableFrom(type))
+ mappedName = "java:comp/EJBContext";
else
throw new RuntimeException("You did not specify a @Resource.mappedName() on " + accObj + " and there is no binding for enc name " + encName + " in XML");
}
More information about the jboss-cvs-commits
mailing list