dain        2005/02/10 18:15:54

  Modified:    modules/core/src/java/org/openejb/entity
                        EntityContextImpl.java
  Log:

  Some fixes to the ejbTimer access... these will also need to be applied to 
Session beans
  
  Revision  Changes    Path
  1.6       +9 -1      
openejb/modules/core/src/java/org/openejb/entity/EntityContextImpl.java
  
  Index: EntityContextImpl.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/entity/EntityContextImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- EntityContextImpl.java    1 Feb 2005 22:27:49 -0000       1.5
  +++ EntityContextImpl.java    10 Feb 2005 23:15:53 -0000      1.6
  @@ -197,6 +197,10 @@
           public Object getPrimaryKey(EJBInstanceContext context) {
               throw new IllegalStateException("getPrimaryKey() cannot be 
called from ejbHome");
           }
  +
  +        public TimerService getTimerService(EJBInstanceContext context) {
  +            throw new IllegalStateException("getTimerService() cannot be 
called from set/unsetEntityContext");
  +        }
       };
   
       public static EntityContextState EJBPOSTCREATE = new 
EntityContextState() {
  @@ -234,6 +238,10 @@
   
           public Object getPrimaryKey(EJBInstanceContext context) {
               throw new IllegalStateException("getPrimaryKey() cannot be 
called from ejbHome");
  +        }
  +
  +        public TimerService getTimerService(EJBInstanceContext context) {
  +            throw new IllegalStateException("getTimerService() cannot be 
called from set/unsetEntityContext");
           }
       };
   
  
  
  

Reply via email to