[jboss-user] [JBoss Seam] - stateful session bean inheritance question

ellenzhao do-not-reply at jboss.com
Fri Aug 17 11:46:13 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075263#4075263

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075263



More information about the jboss-user mailing list