yoavs 2004/05/27 11:33:11 Modified: webapps/docs jndi-datasource-examples-howto.xml Log: Enhanced and corrected doc to address issues raised in Bugzilla 24723: http://issues.apache.org/bugzilla/show_bug.cgi?id=24723 Revision Changes Path 1.8 +20 -1 jakarta-tomcat-catalina/webapps/docs/jndi-datasource-examples-howto.xml Index: jndi-datasource-examples-howto.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jndi-datasource-examples-howto.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- jndi-datasource-examples-howto.xml 29 Feb 2004 12:47:32 -0000 1.7 +++ jndi-datasource-examples-howto.xml 27 May 2004 18:33:11 -0000 1.8 @@ -10,6 +10,7 @@ <author email="[EMAIL PROTECTED]">Les Hughes</author> <author email="[EMAIL PROTECTED]">David Haraburda</author> <author>Glenn Nielsen</author> + <author email="[EMAIL PROTECTED]">Yoav Shapira</author> <title>JNDI Datasource HOW-TO</title> </properties> @@ -473,7 +474,7 @@ <source> <resource-ref> <description>postgreSQL Datasource example</description> - <res-ref-name>jdbc/mydb</res-ref-name> + <res-ref-name>jdbc/postgres</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> @@ -650,6 +651,24 @@ </p> </subsection> + +<subsection name="Context versus GlobalNamingResources"> +<p> + Please note that although the above instructions place the JNDI declarations in a Context + element, it is possible and sometimes desirable to place these declarations in the + <a href="config/globalresources.html">GlobalNamingResources</a> section of the server + configuration file. A resource placed in the GlobalNamingResources section will be shared + among the Contexts of the server. +</p> +</subsection> + +<subsection name="JNDI Resource Naming and Realm Interaction"> +<p> + In order to get Realms to work, the realm must refer to the datasource as + defined in the <GlobalNamingResources> or <Context> section, not a datasource as renamed + using <ResourceLink>. +</p> +</subsection> </section>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]