Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Tomcat JNDI in WTP
Tomcat JNDI in WTP [message #215581] Tue, 17 June 2008 13:18 Go to next message
Eclipse UserFriend
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 17:00 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
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: Thu Apr 18 06:36:06 GMT 2024

Powered by FUDForum. Page generated in 0.02351 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top