And would there be anything special that I would be doing on this new class (or its object) that wasn't already being done by duplicating the code to 'ensure connections are closed' already?
~Manav. ----- Original Message ----- From: "Chris Pratt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 04, 2003 5:27 PM Subject: Re: odd oracle error [MAX cursors] and more :-) > But since you replaced one handle on the stack (the Connection) with a > different handle on the stack (the Wrapper) There should be no additional > stack space consumed. Now as far as Heap Space is concerned, that's a whole > other matter, and would be far more than 4 bytes. > (*Chris*) > > ----- Original Message ----- > From: "Manavendra Gupta" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 04, 2003 8:33 PM > Subject: Re: [SERVLET-INTEREST] odd oracle error [MAX cursors] and more :-) > > > > > only "4 additional bytes being used on the stack" > > the four bytes used to store the reference of the reference type on the > > stack (refer java virtual machine spec for more details, but AFAIK, it > uses > > four bytes for all the non-primitive types). > > > > also, the proposed 'gateway' would further enable loose coupling between > the > > objects. further, it can be subclassed to provide a different > functionality > > (say to persist to file system instead of database). > > > > btw, how does 'making sure all connections are closed in finally block' > > happen? especially if the persistence code is strewn across all source > > files? > > > > Cheers, > > Manav. > > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html