[jboss-cvs] JBossAS SVN: r94459 - projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/proxy/factory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Oct 7 09:48:57 EDT 2009


Author: jaikiran
Date: 2009-10-07 09:48:57 -0400 (Wed, 07 Oct 2009)
New Revision: 94459

Modified:
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/proxy/factory/ProxyFactoryHelper.java
Log:
EJBTHREE-1835 Validation of presence of business interface will be handled in metadata instead of core

Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/proxy/factory/ProxyFactoryHelper.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/proxy/factory/ProxyFactoryHelper.java	2009-10-07 13:06:16 UTC (rev 94458)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/proxy/factory/ProxyFactoryHelper.java	2009-10-07 13:48:57 UTC (rev 94459)
@@ -244,22 +244,7 @@
          ((EJBContainer) container).getAnnotations().addClassAnnotation(Local.class, localAnnotation);
          return rtn;
       }
-      // If no local interfaces have been defined/discovered
-      else
-      {
-         // Obtain WS Endpoint
-         String endpoint = ProxyFactoryHelper.getEndpointInterface(container);
-
-         // If neither WS Endpoint or remotes are defined
-         if (remoteAndBusinessRemoteInterfaces.length == 0 && endpoint == null)
-            throw new RuntimeException(
-                  "Bean Class "
-                        + beanClass.getName()
-                        + " has no local, webservice, or remote interfaces defined and does not implement at least one business interface: "
-                        + container.getEjbName());
-
-      }
-
+      
       // No local or business local interfaces discovered
       return new Class<?>[]
       {};




More information about the jboss-cvs-commits mailing list