[jboss-cvs] JBossAS SVN: r104694 - projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 11 17:16:02 EDT 2010
Author: ALRubinger
Date: 2010-05-11 17:16:02 -0400 (Tue, 11 May 2010)
New Revision: 104694
Modified:
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21Bean.java
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21Remote.java
projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21RemoteHome.java
Log:
[EJBTHREE-2085] Fix the test so IIOP deployment matches spec (component and home interfaces must throw RemoteException)
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21Bean.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21Bean.java 2010-05-11 19:20:48 UTC (rev 104693)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21Bean.java 2010-05-11 21:16:02 UTC (rev 104694)
@@ -28,6 +28,8 @@
import javax.ejb.RemoteHome;
import javax.ejb.SessionContext;
import javax.ejb.Stateful;
+
+import java.rmi.RemoteException;
import java.security.Principal;
/**
@@ -54,7 +56,7 @@
this.user = caller.getName();
}
- public String sayHi()
+ public String sayHi() throws RemoteException
{
return "Hi " + name + " (" + user + ")";
}
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21Remote.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21Remote.java 2010-05-11 19:20:48 UTC (rev 104693)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21Remote.java 2010-05-11 21:16:02 UTC (rev 104694)
@@ -21,6 +21,8 @@
*/
package org.jboss.ejb3.test.ejbthree1995;
+import java.rmi.RemoteException;
+
import javax.ejb.EJBObject;
/**
@@ -28,5 +30,5 @@
*/
public interface SecuredGreeter21Remote extends EJBObject
{
- String sayHi();
+ String sayHi() throws RemoteException;
}
Modified: projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21RemoteHome.java
===================================================================
--- projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21RemoteHome.java 2010-05-11 19:20:48 UTC (rev 104693)
+++ projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1995/SecuredGreeter21RemoteHome.java 2010-05-11 21:16:02 UTC (rev 104694)
@@ -21,6 +21,8 @@
*/
package org.jboss.ejb3.test.ejbthree1995;
+import java.rmi.RemoteException;
+
import javax.ejb.EJBHome;
/**
@@ -28,5 +30,5 @@
*/
public interface SecuredGreeter21RemoteHome extends EJBHome
{
- SecuredGreeter21Remote create(String name);
+ SecuredGreeter21Remote create(String name) throws RemoteException;
}
More information about the jboss-cvs-commits
mailing list