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---------------------------------------------------------"); } }
@Local public interface InitiatorLocal { void initialize(); }
Make the method public on the interface.