2 Replies Latest reply on Apr 9, 2002 12:11 PM by woofbot

    Access to EJB's during shutdown

    woofbot

      I'm using JBoss_2.4.4-Tomcat_4.0.1 on WindowsNT. In order to provide user personalization for the web application, my app stores personalization information in the session. The object which holds the personalization is registered to recieve session unbound events, during which, it will persist its contents to a database via a session bean.
      My problem is that when you shutdown JBoss, the EJB container seems to go down before the Embedded Catalina service. Consequently, when my personalization objects recieves the unbound event from Catalina, the persistence session bean is no longer available.
      Is it possible to change the ordering of the shutdown so that the EJB container is still available when Tomcat shuts down?

      Michael Wolf
      Tracer Digital

        • 1. Re: Access to EJB's during shutdown
          user57

          Not sure exactly (too lazy to look at the code too), but you might have luck listing the Tomcat services before the EJB container services in jboss.jcml.

          Might work... for the definitive look at the org.jboss.util.ServiceControl

          Or wait for 3.0 to go final and use the dependency system to enforce order on shutdown.

          --jason

          • 2. Re: Access to EJB's during shutdown
            woofbot

            Well, from looking at the jboss.jcml and the corresponding code, it looks like tomcat should be shutting down before the ejb container; however my experiences would seem to indicate otherwise. Is there something else going on which might make the EJB's unavailable during the tomcat shutdown?

            Michael Wolf
            Tracer Digital