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>
   &lt;resource-ref&gt;
    &lt;description&gt;postgreSQL Datasource example&lt;/description&gt;
  - &lt;res-ref-name&gt;jdbc/mydb&lt;/res-ref-name&gt;
  + &lt;res-ref-name&gt;jdbc/postgres&lt;/res-ref-name&gt;
    &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
    &lt;res-auth&gt;Container&lt;/res-auth&gt;
   &lt;/resource-ref&gt;
  @@ -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 &lt;GlobalNamingResources&gt; or &lt;Context&gt; section, not a 
datasource as renamed
  +  using &lt;ResourceLink&gt;.
  +</p>
  +</subsection> 
   
   </section>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to