Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat JNDI in WTP
Tomcat JNDI in WTP [message #215581] Tue, 17 June 2008 09:18 Go to next message
Eclipse User
Originally posted by: tomh.a-t-g.com

In a few apps that weren't created by WTP we use JNDI to get our JDBC Data
Source in a context.xml file in Tomcat.

<Resource name="jdbc/blahl" auth="Container" type="javax.sql.DataSource"
maxActive="10" maxIdle="1" maxWait="10000"
username="user" password="pass"
driverClassName="com.p6spy.engine.spy.P6SpyDriver"
url="jdbc:db2://server:port/database"/>

How do we do something like this for an web application created in WTP.

Thanks,
Tom
Re: Tomcat JNDI in WTP [message #215921 is a reply to message #215581] Mon, 23 June 2008 13:00 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
Tom Henricksen wrote:
> In a few apps that weren't created by WTP we use JNDI to get our JDBC Data
> Source in a context.xml file in Tomcat.
>
> <Resource name="jdbc/blahl" auth="Container" type="javax.sql.DataSource"
> maxActive="10" maxIdle="1" maxWait="10000"
> username="user" password="pass"
> driverClassName="com.p6spy.engine.spy.P6SpyDriver"
> url="jdbc:db2://server:port/database"/>
>
> How do we do something like this for an web application created in WTP.
>
> Thanks,
> Tom
>
>

See:
http://wiki.eclipse.org/WTP_Tomcat_FAQ#How_do_I_specify_the_ Tomcat_context_configuration_for_my_Web_Application.3F

Cheers,
Larry
Previous Topic:accessing xml dom from generated model
Next Topic:Server Status refresh?
Goto Forum:
  


Current Time: Mon Jul 28 20:39:42 EDT 2014

Powered by FUDForum. Page generated in 0.02224 seconds