This content has been marked as final.
Show 2 replies
-
1. Re: considering about local and remote instance ...
epbernard May 14, 2005 2:26 PM (in response to flower)Why?
do Person changeName(Person p, String name) {
p.setName(name);
return p;
}
if you want to be sure -
2. Re: considering about local and remote instance ...
flower May 14, 2005 7:24 PM (in response to flower)"epbernard" wrote:
Why?
do Person changeName(Person p, String name) {
p.setName(name);
return p;
}
if you want to be sure
Ok, but after callingMyStatelessBean msb = ctx.lookup(..); Person p = new Person("flower"); p = msb.changeName(p,"RedFlower");
p is different instance.
So if I had got many references to 'p-instance' before calling this method, only one reference will be changed after.
Greetings
Flower