> -----Original Message-----
> From: Antti Koivunen [mailto:[EMAIL PROTECTED]]
>
>
> Leo Sutic wrote:
> <skip/>
> >
> > public class Token extends java.rmi.server.UID {}
>
> new java.rmi.server.UID() is a very expensive operation, so it's not
> really suitable for something like this.
Only if it is more expensive than *all* the calls you intend to make
through the obtained interface before you release it.
If you grab everything in compose() and release it in dispose(), it should
not
be a problem.
But I realized that it is enough to have:
public class Token {}
Since we can use object identity.
/LS
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>