maguro      2005/03/09 00:01:01

  Modified:    modules/core/src/java/org/openejb/sfsb
                        StatefulSessionContext.java
  Log:

  Fixed getCallerPrincipal()
  
  Revision  Changes    Path
  1.8       +4 -3      
openejb/modules/core/src/java/org/openejb/sfsb/StatefulSessionContext.java
  
  Index: StatefulSessionContext.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/sfsb/StatefulSessionContext.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StatefulSessionContext.java       1 Mar 2005 23:34:30 -0000       1.7
  +++ StatefulSessionContext.java       9 Mar 2005 05:01:01 -0000       1.8
  @@ -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;
  @@ -126,7 +127,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");
           }
   
  @@ -164,7 +165,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)");
           }
   
  
  
  

Reply via email to