2 Replies Latest reply on May 19, 2003 5:34 PM by adrian.brock

    Synchronization in BMP

      Hi,

      I have developped an entity bean (BMP), ejbStore and ejbLoad call the data base with 'update' and 'select'.

      I wonder if the engine JBoss calls these methods for synchronizing the bean with my data base ?
      In fact I believe that I must manage the synchronization myself in my business method.


      I research an explication about synchronzation in JBoss.

      best regard.

      Christophe

        • 1. Re: Synchronization in BMP
          haraldgliebe

          The EJB-Container will call ejbLoad and ejbStore. You should have a look at the EJB specification, it contains object interaction diagrams that show exactly when these methods are called.

          Regards,
          Harald

          • 2. Re: Synchronization in BMP

            ejbLoad and ejbStore are invoked according to
            the ejb spec.

            The default config for BMP in jboss is
            commit-option A, but for CMP it is commit-option B
            See standardjboss.xml

            A means load once (unless flushed from the cache)
            B means reload every transaction

            Regards,
            Adrian