2 Replies Latest reply on Nov 2, 2012 8:10 AM by ccob

    JBoss AS 7.1.1 Singleton with Startup and Asynchronous method not working

    ccob Newbie

      Hi All,

       

      I am currently trying to start a backround process within my application with a Singleton EJB.  The EJB is marked Singleton and Startup and I also have a PostConstruct method which makes the call to the Asynchronus annotated method.

       

      The PostConstruct does indeed get executed on startup as expected, but when I make the call to the startAsync method, which is annotated with Asynchronus, the method doesn't get invoked asynchronusly as log messages show the same thread name as the PostConstruct method.

       

      I am running with the standalone-full configuration.  Can anyone shed any light on this issue?

       

      Thanks