1 Reply Latest reply on Sep 12, 2008 4:38 AM by thejavafreak

    Unable to detect com.jboss.seam.postInitialization

    wayofdragonster
      Hi,

      I am trying to get seam to run some initialization code, but I have trouble detecting the "com.jboss.eam.postInitialization" event.  The following is a snippet of my code:

      @Name("observeInitialization")
      public class ObserveInitialization
      {  
         @Logger
         static private Log log;
        
         //@Observer("com.jboss.seam.postInitialization")
         public void observe()
         {
            log.debug("I am here");
            ...other code...
         }
      }

      I never see "I am here" being logged and my code is not being called at all.  Is there anything else I need to do to detect the postInitialization event?  I also set it up the lister in the components.xml file, but to no avail:

      In components.xml:
         <event type="com.jboss.seam.postInitialization">
            <action execute="#{observeInitialization.observe}"/>
         </event>

      Am I missing something?  Any ideas?

      Environment: SEAM 2.0.0 GA with Tomcat 6.0

      Thanks!