djencks     2005/02/01 17:27:50

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

  GERONIMO-563. More correct allowed methods for ejbTimeout and ws interface 
methods.
  
  Revision  Changes    Path
  1.6       +1 -9      
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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- MDBContext.java   12 Oct 2004 20:01:13 -0000      1.5
  +++ MDBContext.java   1 Feb 2005 22:27:50 -0000       1.6
  @@ -213,20 +213,12 @@
   
   
       public static final MDBContextState BIZ_WSENDPOINT = new 
MDBContextState() {
  -        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 MDBContextState EJBTIMEOUT = new MDBContextState() {
  -        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");
           }
  
  
  

Reply via email to