0 Replies Latest reply on Oct 15, 2008 6:42 PM by benitojuarez

    Asynchronous method dont start

    benitojuarez

      Hello,


      i got a strange problem using @Asynchronous methods:
      My code:


      First the Bean which method shall invoked asynchronously:


      @Local
      public interface SourceCompilationProcessLocal
      {
           @Asynchronous
           public void processUndoSourceCompilation(String sourceName, String type);
      }
      
      
      @Stateful
      @Scope(ScopeType.SESSION)
      @Name("sourceCompilationProcess")
      public class SourceCompilationProcess implements  SourceCompilationProcessLocal 
      {
           public void processUndoSourceCompilation(String sourceName, String type)
           {
                log.info("undo compilation ");
           }
      }
      



      And the invoking from another bean:



           public void undoSourceCompilation(String sourceName, String type)
           {
                log.info("undoSourceCompilation() ");
      
                // this member is filled by Injection @In
                sourceCompilationProcess.processUndoSourceCompilation(sourceName, type);
      
                log.info("undoSourceCompilation() done ");
           }
      



      Now my Problem:


      The outprint on the console is
      undoSourceCompilation()
      undoSourceCompilation() done


      The asynchronous method is never invoked!
      What's my mistake?
      BJ