3 Replies Latest reply on Jun 29, 2010 12:34 PM by peterj

    Performance issue to use remote ejb?

    akhtar24

      Hello,

              I am using remote ejb. i develop one ear in which i put ejb module .jar and deploy it to jboss 5.1 server and one other ear having .war and .jar(containing Remote interface) and deploy it to another server.

               All is working fine.  but my question is....

       

       

      1) when use remote ejb is this call by value or call by reference?

      2) Is this right way to access remote ejb as point of performance issue?

       

      Please Help me

       

      Thanx.

        • 1. Re: Performance issue to use remote ejb?
          peterj

          1) By value

           

          2) Not sure of what you are asking. If the EJB is remote, the request and response data will always have to be marshalled and transferred across the network. Is that slower than accessing a local EJB? Yes! But there is no other way to access a remote EJB. If possible, cache the EJB proxy you look up from JNDI. By reusing this proxy you will at least save time by not repeatedly making the JNDI call.

          • 2. Re: Performance issue to use remote ejb?
            akhtar24

            Hi Peter,   Thanx a lot.

             

            i also have doubt in

             

            1) If we use remote ejb then it marshalled and unmarshalled object and transferred across the network. that means it called as call by value not call by reference. am i right?

             

            Please help me...

             

            Thanx again.

            • 3. Re: Performance issue to use remote ejb?
              peterj

              You are right, I got my terms confused, it is call by value!