2 Replies Latest reply on Oct 8, 2002 6:35 PM by zx44093

    How do we control EJBStore

    annapurna

      I am trying to write a BMP entity bean. Whenever I call a get method on the bean ejbStore is called which I do not want to happen.Is there a way where we can avoid the call of ejbStore when get methods are called on the entity bean.I want the ejbStore to be called only when the set method is called.


      Thanks in advance,
      Anna.

        • 1. Re: How do we control EJBStore
          annapurna

          I actually checked in the JBoss docs and found out a way to make the entire entity bean read-only,but what I want is a way to call ejbStore only for set methods and not call it when get methods are called on the bean.

          Let me know if anyone tried this out.

          Thanks in Advace,
          Anna.

          • 2. Re: How do we control EJBStore
            zx44093

            Define a isModified() method and a setModified(boolean m) method. And when call setter methods, set the flag t true.