tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp Taprogge <>
Subject Re: JDBC from TagSupport
Date Tue, 16 Dec 2003 19:24:19 GMT

Hart, Justin wrote:
> Quick question.  I see that one can configure a JDBC datasource in their server.xml file
and their web.xml file.
 > What does this get you?  Every example that I have read tells me 
that I need to open a JDBC connection just about
> the same as I would from any other java application.
> What is the purpose of setting up a JDBC datasource in these files?  Is it only good
for userdatabaserealm?

The main advantage is that you can use a connection pool like 
jakarta-commons-dbcp which saves you a lot of runtime. The second 
advantage is that you can configure the connection parameters like db 
URL, username, password and the like on the fly without editing java 
sources or redeploying your application.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message