This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes datasource on tomcat 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "datasource on tomcat 6" Watch "datasource on tomcat 6" New topic

datasource on tomcat 6

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315

How can I use the Datasource created in Tomcat 6 outside the webapps deployed in it.

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Originally posted by Neeraj Vij:

How can I use the Datasource created in Tomcat 6 outside the webapps deployed in it.

you mean JNDI ? please visit tomcat-docs under the web-apps folder of tomcat

you may get information
Bhaskar Rao

Joined: Apr 25, 2005
Posts: 23

Tomcat does not yet provide JNDI access to external applications running outside Tomcat. The datasource created within Tomcat is available ONLY to Web Apps running inside Tomcat.

More info Tomcat Datasource
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Maybe you should take a look at the JBoss AS, in which you can set the datasource up, so it can be reached from outside the server.

Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link:
subject: datasource on tomcat 6
Similar Threads
how to configure oracle DataSource into Tomcat 6
Exception while connectiing DB through Tomcat
Connection pool
set applicationname in Datasource for tomcat5