[jboss-cvs] JBossAS SVN: r78512 - projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Sep 14 14:12:57 EDT 2008


Author: dimitris at jboss.org
Date: 2008-09-14 14:12:57 -0400 (Sun, 14 Sep 2008)
New Revision: 78512

Modified:
   projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBContext.java
Log:
JBEE-4, make EJBContext.lookup throw IllegalArgumentException

Modified: projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBContext.java
===================================================================
--- projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBContext.java	2008-09-14 16:53:22 UTC (rev 78511)
+++ projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBContext.java	2008-09-14 18:12:57 UTC (rev 78512)
@@ -150,11 +150,12 @@
    public TimerService getTimerService() throws IllegalStateException;
 
    /**
-    * New from EJB 3.0.  A JNDI lookup method that doesn't throw exceptions
+    * Lookup a resource within the component's private naming context. 
     *
-    * @param name
-    * @return returns null if JNDI lookup finds nothing
+    * @param name - Name of the entry (relative to java:comp/env).
+    * @throws IllegalArgumentException - The Container throws the exception if
+    * the given name does not match an entry within the component's environment.
     */
-   public Object lookup(String name);
+   public Object lookup(String name) throws IllegalArgumentException;
    
 }




More information about the jboss-cvs-commits mailing list