Re: odd oracle error [MAX cursors]

Manavendra Gupta <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <008001c2cd7a$13fce440$38080080@manavendra>
> or as you say we could use a TIBCO adapter which talks to Oracle database,
well, the term 'adapter' used, was a generic term - for lack of anything
else. this 'adapter' is a simple java class - nothing bulky (assuming TIBCO
adapter is bulky and provides a hunk of features that i don't know of) :-)

> and handles all the connection pooling for us.
that's exactly what this proposed class shall do.

> There are many ways of doing this, but arent we making things more complex
> by making use of adapter, rather using a class or finally block.

i honestly don't know if adding one class makes things complex. here is my
take away on this approach:
    + layer of abstraction to solve a bigger problem.
    +enables one to forget the low-level details of connection pooling
    +one doesn't need to replicate the code throughout the source base for
handling connections in try catch finally blocks.

> Putting code in finally block is not code redundancy but this is to check
> that the connection is not open, if open then close it and let the gc do
the
> rest.
i agree. i don't say putting code in finally block is redundancy, but if i
have to do that everywhere the persistence layer is called from - then, that
is!

~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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.