1 Reply Latest reply on Sep 22, 2010 6:46 AM by java_lover

    Timer service and stateless beans

    mojito java Newbie

      Hello

      i'm newby to the EJB 3.x

      i have some questions to which i didn't find answer in the specification.

      It concerns the timer service and stateless session beans.

      A timed method on a stateless bean, does it guarantee that the statelss bean will not be removed by container?

      if there are many instances of a stateless bean, does the container guarantee that code is executed once?

      Thank u for ur help

        • 1. Re: Timer service and stateless beans
          java_lover Newbie

          Hello newby,

          Check the JSR 318 .

          Please explain what do you mean by :"Does the container guarantee that code is executed once?"

          if the session is stateless the code is executed when it is invoked and the timer does not make sens .

          the timer is aplied on the client that invoke the stateless session and not on the bean it self!!!

           

          Check with Amdoun ,