0 Replies Latest reply on Mar 6, 2006 7:08 PM by Tomkooo Tomkooo

    beginer question - @remote adn pass by value

    Tomkooo Tomkooo Newbie

      hi, i have some basic question.

      suppose i have 2 beans implementing remote interface.
      from bean1 i invoke method on bean2 in which i pass some POJO object(persistant). In remote beans object are passed by value ,right ??
      so if i want to retrieve changes made in bean2 method i have to pass my object back from bean2 ??
      eg.

      Account a = new Account();
      a.setSomething("asdf");
      
      a = bean2.changeAccount( a );
      ^^^
      this retrieves changed object.
      
      System.out.print(a.getSomething());
      

      is there another way of retrieving changes made in bean2 ??