https://issues.apache.org/bugzilla/show_bug.cgi?id=50068
--- Comment #2 from Konstantin Kolinko <[email protected]> 2010-11-07 12:00:40 EST --- 1. The only way that I see that this can be solved is to define a listener. Even if the tag was the first to register a JDBC driver, it cannot unload it immediately after use, but can do it only when the webapp stops. That would be a task for a listener, not for a tag. A tag library can define listeners in its TLD. (Or a webapp can define its own listener for the purpose of [registering and] deregistering its JDBC drivers.) 2. The JSTL spec explicitly says that such usage is not recommended. Reading jstl-1_2-mrel2-spec.pdf, chapter 10.6 "<sql:setDataSource>": [cite] As mentioned in Section 10.1.1, using JDBC’s DriverManager class to access a database is intended for prototyping purposes only because it does not provide connection management features one can expect from a properly designed DataSource object. [/cite] -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
