aspose file tools*
The moose likes Tomcat and the fly likes DataSource Realms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "DataSource Realms" Watch "DataSource Realms" New topic
Author

DataSource Realms

Lisa Modglin
Ranch Hand

Joined: Oct 28, 2003
Posts: 46
Is anyone out there using DataSource Realms in Tomcat 5? I could use some help setting it up.

I understand Tomcat's instructions for database layout, how to add the realm element to the server.xml and how to set up the realm element in the server.xml file.

I don't understand how to configure a JNDI named JDBC DataSource. There is a link to instructions, but even after reading, they make no sense to me.

Lisa
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
There are 3 pieces to setting up the Realm. Using the server.xml file as an example:
1- Resource tag, this declares the name and type of the resource.

2- ResourceParams tag, this defines what Tomcat should do to initialize the Resource

3- Realm tag, this attaches to the Resource named in the resourceName attribute.
 
 
subject: DataSource Realms