Hi,

Im trying to call an action method at startup using the Observer Annotation. 
The code is:


@Stateless
  | @Name("initializator")
  | public class InitiatorBean implements InitiatorLocal {
  |     
  |     @Logger
  |     private Log log;
  |     
  |     @Observer("org.jboss.seam.postInitialization")
  |     public void initialize(){
  | 
  |         log.info("INITIALIZATION DONE");
  |        
System.out.println("INIT---------------------------------------------------------");
  |               
  |         
  |     }
  |     
  | }
  | 
  | 


And its interface is:






  | 
  | @Local
  | public interface InitiatorLocal {
  |     
  |     void initialize();
  |     
  | }
  | 
  | 
  | 

However  I see nothing in the output neither in the log. Can someone help me?

Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102649
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to