djencks 2005/02/01 17:27:51
Modified: modules/core/src/java/org/openejb/slsb
StatelessSessionContext.java
Log:
GERONIMO-563. More correct allowed methods for ejbTimeout and ws interface
methods.
Revision Changes Path
1.6 +2 -17
openejb/modules/core/src/java/org/openejb/slsb/StatelessSessionContext.java
Index: StatelessSessionContext.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/slsb/StatelessSessionContext.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- StatelessSessionContext.java 12 Oct 2004 20:01:13 -0000 1.5
+++ StatelessSessionContext.java 1 Feb 2005 22:27:51 -0000 1.6
@@ -214,25 +214,10 @@
public static final StatelessSessionContextState BIZ_WSENDPOINT = new
StatelessSessionContextState() {
- public Principal getCallerPrincipal() {
- throw new IllegalStateException("getCallerPrincipal() cannot be
called in a business method invocation from a web-service endpoint");
- }
-
- public boolean isCallerInRole(String s, EJBInstanceContext context) {
- throw new IllegalStateException("isCallerInRole(String) cannot
be called in a business method invocation from a web-service endpoint");
- }
};
public static final StatelessSessionContextState EJBTIMEOUT = new
StatelessSessionContextState() {
- public Principal getCallerPrincipal() {
- throw new IllegalStateException("getCallerPrincipal() cannot be
called from ejbTimeout");
- }
-
- public boolean isCallerInRole(String s, EJBInstanceContext context) {
- throw new IllegalStateException("isCallerInRole(String) cannot
be called from ejbTimeout");
- }
-
- public MessageContext getMessageContext() {
+ public MessageContext getMessageContext() {
throw new IllegalStateException("getMessageContext() cannot be
called from ejbTimeout");
}
};