0 Replies Latest reply on Dec 10, 2007 2:52 AM by Rabbia Qaswar

    Invoking methods annotated with @PreDestroy

    Rabbia Qaswar Newbie


      Can anyone please tell me whether the @PreDestroy annotation is supported in the JBoss 4.0.4.GA?

      I am closing a database connection in a method annotated with the @PreDestroy in a Stateless Session Bean. After closing the connection i have a logger statement. But that statement is never written in the log file of jboss.

      I wanted to know when the method annotated with PreDestroy would be called? Or is it not supported in this version of JBoss?