Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Oct 28, 2003
Jul 06, 2006 15:16:00
Is anyone out there using
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
. There is a link to instructions, but even after reading, they make no sense to me.
Joined: Aug 08, 2003
Jul 07, 2006 15:21:00
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.
<Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved"> </Resource>
2- ResourceParams tag, this defines what Tomcat should do to initialize the Resource
<ResourceParams name="UserDatabase"> <parameter> <name>factory</name> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value> </parameter> <parameter> <name>pathname</name> <value>conf/tomcat-users.xml</value> </parameter> </ResourceParams>
3- Realm tag, this attaches to the Resource named in the resourceName attribute.
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" debug="0" resourceName="UserDatabase"/>
I agree. Here's the link:
- it saves me about five hours per week
subject: DataSource Realms
Tomcat with more than one Applications in WEBAPPS folder
A couple of questions
What's the realm really mean?
can WebLogic 6.0 use a JDBC realm?
question about tomcat JDBC realm.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013