1 Reply Latest reply on Jun 24, 2002 8:04 PM by Dain Sundstrom

    ejbStore for CMP Beans

    Rusudan Newbie

      Hi all,

      I have following question:
      my CMP beans (both entity and session) are calling ejbStore after each business method, that has a havy overhead in performance, does anyone know how to prevent this?


        • 1. Re: ejbStore for CMP Beans
          Dain Sundstrom Master

          You are not a single wrapping tansaction, so each method invocation takes place in it's own transaction. At the end of a transaction the contrainer stores each entity accessed in the transaction.

          You can prevent this by putting the code in a session bean or by using a UserTransaction.