1 Reply Latest reply on Aug 20, 2007 11:00 AM by Pete Muir

    stateful session bean inheritance question

    Ning Zhao Apprentice

      There are common code like

      UseCase motherUseCase;
      UseCase currentUseCase;
      User actor;
      @In EntityManager entityManager;
      @In Identity identity;
      List<Exception> userInputErrors;
      List<Throwable> infrastractureErrors;
      ....
      
      // getters and setters of all the fields above.
      


      In all of my stateful session beans. So I'd like to write a super class AppController to eliminate the duplication. Here is the question:

      May I put all the common @Create code in the
      @Create protected void init(){}
      

      in the super class? Thanks!


      Ellen