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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to