maguro 2005/03/09 00:01:02
Modified: modules/core/src/java/org/openejb/slsb
StatelessSessionContext.java
Log:
Fixed getCallerPrincipal()
Revision Changes Path
1.10 +5 -4
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.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- StatelessSessionContext.java 1 Mar 2005 23:34:32 -0000 1.9
+++ StatelessSessionContext.java 9 Mar 2005 05:01:02 -0000 1.10
@@ -56,6 +56,7 @@
import javax.ejb.TimerService;
import javax.transaction.UserTransaction;
import javax.xml.rpc.handler.MessageContext;
+import javax.security.auth.Subject;
import org.openejb.EJBContextImpl;
import org.openejb.EJBInstanceContext;
@@ -125,7 +126,7 @@
throw new IllegalStateException("getEJBLocalObject() cannot be
called when inactive");
}
- public Principal getCallerPrincipal() {
+ public Principal getCallerPrincipal(Subject callerSubject) {
throw new IllegalStateException("getCallerPrincipal() cannot be
called when inactive");
}
@@ -163,7 +164,7 @@
throw new IllegalStateException("getEJBLocalObject() cannot be
called from setSessionContext(SessionContext)");
}
- public Principal getCallerPrincipal() {
+ public Principal getCallerPrincipal(Subject callerSubject) {
throw new IllegalStateException("getCallerPrincipal() cannot be
called from setSessionContext(SessionContext)");
}
@@ -193,7 +194,7 @@
};
public static final StatelessSessionContextState EJBCREATEREMOVE = new
StatelessSessionContextState() {
- public Principal getCallerPrincipal() {
+ public Principal getCallerPrincipal(Subject callerSubject) {
throw new IllegalStateException("getCallerPrincipal() cannot be
called from ejbCreate/ejbRemove");
}