Hi
     Please refer to the following code :

     Test obj1 = remote.getTestObj();     // just returns the test object.
remote is the remote reference of a session bean

     System.out.println("Val = " + obj1.getVal());   // prints the
"default" value
     remote.setTest("something");       // sets this value in the Test
object of the session bean. Please note, the test object in the session
bean is reused

     Test obj2 = remote.getTestObj();

     System.out.println("Val = " + obj1.getVal());   // prints "something"



Since I am retrieving the object from a remote component, I did not expect
that changes to the object in the EJB would reflect  in  "obj1".

Is this expected behaviour ?

Thanks,
Pratima

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to