2 Replies Latest reply on Jan 4, 2004 7:58 PM by gdemir

    ejbStore timing

    gdemir

      Hi,

      Is it possible in JBoss to tell the container when to call ejbStore methods? It seems to me the container calls ejbStore just before the transaction is committed. I would like ejbStore to be called right after each business method invocation.

      I tried using all commit options with no luck.

      Thanks,
      Gokhan

        • 1. Re: ejbStore timing
          raja05

          Use a REquiresNew Tx attribute for every method in ur bean.

          • 2. Re: ejbStore timing
            gdemir

            Hi back,

            I don't want to use "requires new" transaction attribute in entity beans, instead I use "requires" so that they can either start themselves or join existing transactions. But still, I would like to able to tell the container to call ejbStore right after each method invocation. Is this possible with JBoss, whatever version (given that CMP 2.0 container be certified with the spec).

            Thanks,
            Gokhan