1 Reply Latest reply on Dec 17, 2003 11:14 AM by raja05

    Bean persistence or Container persistence ?

    warx_sg

      hi,

      i am pretty new to EJB world and i was wondering if most of EJB application use bean persistence or container persistence....so i can focus my efforts to study EJB.
      Cheers.

      Stefano

        • 1. Re: Bean persistence or Container persistence ?
          raja05

          To put it short, you would use Bean managed persistence if you need more control on your data access objects. the same (almost same) level of control can be obtained through Container managed but with some tweaks.
          So if i were you, i would start with Container managed so its easy to see how things work and leave the difficult aspects(SQL, Tx management) to the container and just declare them using CMP. Once you get to a point where you are strong with CMP, you can rewrite that with BMP.