[jboss-cvs] jboss-seam/src/main/org/jboss/seam/remoting ...
Shane Bryzak
Shane_Bryzak at symantec.com
Wed Nov 15 18:21:49 EST 2006
User: sbryzak2
Date: 06/11/15 18:21:49
Modified: src/main/org/jboss/seam/remoting Call.java
Log:
fixed bug invoking non session bean components with interfaces
Revision Changes Path
1.13 +6 -3 jboss-seam/src/main/org/jboss/seam/remoting/Call.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Call.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/remoting/Call.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- Call.java 1 Nov 2006 01:52:09 -0000 1.12
+++ Call.java 15 Nov 2006 23:21:49 -0000 1.13
@@ -116,10 +116,9 @@
Class type = null;
- if (component.getBusinessInterfaces().size() > 0)
+ if (component.getType().isSessionBean() &&
+ component.getBusinessInterfaces().size() > 0)
{
- // Get the local interface for the component - this is the type that we're
- // going to assume we're invoking against.
for (Class c : component.getBusinessInterfaces())
{
if (c.isAnnotationPresent(EJB.LOCAL))
@@ -128,6 +127,10 @@
break;
}
}
+
+ if (type == null)
+ throw new RuntimeException(String.format(
+ "Type cannot be determined for component [%s]. Please ensure that it has a local interface.", component));
}
if (type == null)
More information about the jboss-cvs-commits
mailing list