> I'm not quite sure what you mean by this, but...
>
> > some while back). This will
> > a) allow Connections to be gotten in setInitialContext() and reused many
> > times
> > b) make it impossible for beans to "steal" connections and not hand them
> > back
>
> ...what if a bean "steals" a connection because it wants to keep a
> result set open across business method calls, e.g. to implement
> the "stateful session bean facade as remote scrollable cursor"
> pattern?  I'm not recommending this architecture (blech), but it's
> legal.  In this case, you wouldn't want other components reusing
> this connection, right?

Not sure. Would it be possible to code ResultSet so that .close does the
connection return thingy? That should be ok I think.

/Rickard




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

Reply via email to