I wonder if Tomcat/IDE integration info would be appropriate for this
page.  Specifically, I recently worked through an issue with IntelliJ's
handling of a local Tomcat installation.  In short, IntelliJ ignores the
META-INF/context.xml file when starting Tomcat.  To access a jndi
datasource, you must repeat the configuration in separate file named
"yourAppName.xml" that is placed inside the server's
/Catalina/localhost/ folder, then specify this Context in IntelliJ's
deploy dialog.  Failure to do so results in a naming exception.

-----Original Message-----
From: Stephen Schaub [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 12:13 PM
To: users@tomcat.apache.org
Subject: Using J2EE DataSources with Tomcat 5.5

When developing web applications that use J2EE DataSources to provide
database connection pooling, I dislike having to jump through all the
hoops that are typically necessary (i.e., set up the DataSource in the
development web application server).

Recently, I discovered that it's possible with Tomcat 5.5 to define
DataSource information in a configuration file that is part of the web
application project itself. A great convenience. I've written up my
findings here, since it took me some time searching the mailing list and
perusing the documentation to figure it out. Feel free to peruse and
edit if corrections are necessary:

http://wiki.apache.org/tomcat/UsingDataSources

--
Stephen Schaub

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to