0 Replies Latest reply on Sep 11, 2007 11:11 PM by rodrigotico

    TransactionalSeamPhaseListener and upgrade seam 2.0

    rodrigotico

      Hello,

      I migrated to seam 2.0 my project that was using 1.2.1 GA.

      On the seam 1.2.1GA I had a custom TransactionalSeamPhaseListener on the faces-config.xml

       <!-- Seam transaction management -->
       <lifecycle>
       <phase-listener>br.com.projeta.util.MySeamPhaseListener</phase-listener>
       </lifecycle>
      


      public class MySeamPhaseListener extends TransactionalSeamPhaseListener {
      
       public MySeamPhaseListener() {
       super();
       }
      
       @Override
       public void handleTransactionsBeforePhase(PhaseEvent e) {
       super.handleTransactionsBeforePhase(e);
      
       // "my code"
      
       }
      }
      


      Seam 2.0 doesn't have a Transactional Mannagement on the faces-config.xml.

      What can I do to run "my code" on handleTransactionBeforePhase?

      Thanks,