maguro      2005/03/09 00:01:01

  Modified:    modules/core/src/java/org/openejb/mdb MDBContext.java
  Log:

  Fixed getCallerPrincipal()
  
  Revision  Changes    Path
  1.9       +5 -4      
openejb/modules/core/src/java/org/openejb/mdb/MDBContext.java
  
  Index: MDBContext.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/mdb/MDBContext.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MDBContext.java   1 Mar 2005 23:34:20 -0000       1.8
  +++ MDBContext.java   9 Mar 2005 05:01:01 -0000       1.9
  @@ -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.apache.geronimo.transaction.context.UserTransactionImpl;
   import org.apache.geronimo.transaction.context.TransactionContextManager;
  @@ -124,7 +125,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");
           }
   
  @@ -162,7 +163,7 @@
               throw new IllegalStateException("getEJBLocalObject() cannot be 
called from setMessageDrivenContext(MessageDrivenContext)");
           }
   
  -        public Principal getCallerPrincipal() {
  +        public Principal getCallerPrincipal(Subject callerSubject) {
               throw new IllegalStateException("getCallerPrincipal() cannot be 
called from setMessageDrivenContext(MessageDrivenContext)");
           }
   
  @@ -192,7 +193,7 @@
       };
   
       public static final MDBContextState EJBCREATEREMOVE = new 
MDBContextState() {
  -        public Principal getCallerPrincipal() {
  +        public Principal getCallerPrincipal(Subject callerSubject) {
               throw new IllegalStateException("getCallerPrincipal() cannot be 
called from ejbCreate/ejbRemove");
           }
   
  
  
  

Reply via email to