1 Reply Latest reply on Nov 16, 2007 6:08 AM by pmuir

    Problem calling an action method at startup using the Observ

    javichi_fer

      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