Tank you.

Rickard Oberg wrote:

> Hi!
>
> >Is true that each time when I get a reference from JNDI of one object I
> >receive a new instance of it ?? The servlet binds an object into JNDI
> >and other clients access it. Each of them get a new instance of it or a
> >proxy to it ????
>
> Objects are stored in their serialized form, so yes each caller will get
> their own copy. Just as the JNDI spec says.
>
> If you don't want this (and it sounds like that) I suggest you use
> References. Look at the TransactionManager code for an example of how to do
> this.
>
> /Rickard
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to