On Mon, Jul 13, 2009 at 9:43 PM, James Carman<[email protected]> wrote: > On Mon, Jul 13, 2009 at 7:32 AM, Erik van Oosten<[email protected]> wrote: >> So the best thing to do for now is to have some flag to see if you're >> already detached. In getObject the flag is cleared. For most models however, >> it should not matter if they're called multiple times; the typical thing you >> do in detach is set a field to null. > > Some models could do some weird stuff like remove connections to > resources, though, on detach. >
I close a connection to another server on detach. I null out the connection field after closing it though, so I never close it twice. Ian. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
