2 Replies Latest reply on Jun 21, 2006 11:54 PM by maxoid

    Entity bean method "isIdentical" do not verify a server node

    maxoid

      In my application I connect to a different JBoss servers and take the same types of CMP entity beans with unknown primary keys. So when I check for "isIdentical" two beans from different servers, then sometimes I had an unexpected result, that this beans are IDENTICAL!
      I found in the sources, that there is compared JNDI names of the beans and theirs PK (that can be the same on different servers).
      Please, help. How to avoid this problem in multy server environment?

        • 1. Re: Entity bean method
          dimitris

          What is the overal use-case? Are you accessing ejb2.0 entity beans directly/remotely?

          • 2. Re: Entity bean method
            maxoid

             

            What is the overal use-case?

            Client remotely search an entity beans on different jboss servers. The result is a collection of remote stub objects to different servers. From other process we have one remote stub object, that can be found (or not) in the first collection. Needs to determine this.
            In other words, implement some kind of Collection.contains() method, in distributed environment of JBoss servers. This is not a claster of servers, but autonomous set of servers with the same application.

            Are you accessing ejb2.0 entity beans directly/remotely?

            Remotely of course.