2 Replies Latest reply on Sep 21, 2010 1:05 PM by meneghette.meneghette.gmail.com

    maybe an issue with @Transaction

    meneghette.meneghette.gmail.com

      I think this is an issue, but i'm not sure


      I'm using Seam 2.2.0 GA, on the components the transaction configurations is:




      core:init debug="false" jndi-pattern="@jndiPattern@"  transaction-management-enabled="false"





      When i want to use the transaction a put the @Transaction on the method, example:




      @Name("test")
      public class Test{
         @Transaction
         public void save(){}
      }





      and th button on the page call this method, this works,


      but, if i have another method on the same class and put the @transaction on the second method that is called from the first, the transaction is not opened.


      Exemple



      @Name("test")
      public class Test{
        
         public void save(){
           saveDatabase();
         }
      
         @Transaction
         public void saveDatabase(){
      
         }
      }



      And the page calls the method save(), this does not work, appers the transaction is not being opened, but if i put the @transaction on the save(), it's works


      Can some one help me ?