4 Replies Latest reply on Apr 15, 2003 5:21 AM by miloud

    Probleme synchro entre table EJB Entity

    miloud

      Bonjour,

      j'ai deux ejb entity bmp A et B :

      dans A j'ai une méthode qui renvoi une collection de clé corespondant à l'ejb B,

      Code:
      public class ABean implements EntityBean {
      ..
      ..
      public Collection getBs() {
      return Bs;
      }
      }


      quand j'ajoute un enregistrement dans la table corespondante à B, et je fait : A.getBs().size() ça prend pas le dernier enregistrement saisi avec B, alors qu'il est bien dans la table, j'ai un probleme de synchronisation d'ejb, et je ne sais pas quand le contener appel la méthode ejbLoad().

      On utilise Jboss 3 avec SQLServeur.
      Es ce que mon erreur viens du fait que la configuration de Jboss est mauvaise ou que ce sont les deploymentdescriptor?

      une idée ?? please merci

        • 1. Re: Probleme synchro entre table EJB Entity
          darranl

          Any chance of someone translating this question?

          • 2. Re: Probleme synchro entre table EJB Entity
            diana

            Translation:
            Hello,

            I have two ejb entity bmp A and b:

            in A I have a method which reference a collection of key corespondant
            with the ejb B,

            Code: public class ABean implements public EntityBean {....
            Collection getBs() {return Bs; }}


            when I add a recording in the table corespondante with B, and I
            makes: A.getBs().size() that does not take the last recording seized
            with B, whereas it is well in the table, I have a problem of
            synchronization of ejb, and I do not know when the contener call the
            method ejbLoad().

            One uses Jboss 3 with SQLServer. whatis my error come owing to the
            fact that the configuration of Jboss is bad or that they are the
            deploymentdescriptor?

            an idea?? please thank you

            • 3. Re: Probleme synchro entre table EJB Entity
              diana

              I have the same problem,somebody can help us!!
              Thanks!!

              • 4. Re: Probleme synchro entre table EJB Entity
                miloud

                Here is the solution : In the file standard-jboss.xml change the value of the <commit-option> to B. like this
                <commit-option>B</commit-option>

                you can try with C, I don't know the real difference but for me it works fine !


                Miloud
                (Lover From Paris)
                (Thanx for the translation)