akarasulu 2004/12/28 16:00:21
Modified: www/subprojects/directory-naming building.html
cvs-usage.html dependencies.html downloads.html
index.html issue-tracking.html mail-lists.html
maven-reports.html project-info.html
projects-overview.html team-list.html using.html
www/subprojects/directory-naming/style maven-classic.css
Removed: www/subprojects/snickers projects-overview.html
www/subprojects/snickers/images BERDecoder.gif
BERDecoderCallback.gif
PrimitiveTupleDecoder-uml.gif TagTree.png
WildTagTree.png add.gif all-uml.gif collapsed.gif
expanded.gif external-classic.png external.png
file.gif fix.gif folder-closed.gif folder-open.gif
help_logo.gif icon_alert.gif icon_alertsml.gif
icon_arrowfolder1_sml.gif icon_arrowfolder2_sml.gif
icon_arrowfolderclosed1_sml.gif
icon_arrowfolderopen2_sml.gif
icon_arrowmembers1_sml.gif
icon_arrowmembers2_sml.gif
icon_arrowusergroups1_sml.gif
icon_arrowusergroups2_sml.gif
icon_arrowwaste1_sml.gif icon_arrowwaste2_sml.gif
icon_confirmsml.gif icon_doc_lrg.gif
icon_doc_sml.gif icon_error_lrg.gif
icon_error_sml.gif icon_folder_lrg.gif
icon_folder_sml.gif icon_help_lrg.gif
icon_help_sml.gif icon_info_lrg.gif
icon_info_sml.gif icon_infosml.gif
icon_members_lrg.gif icon_members_sml.gif
icon_sortdown.gif icon_sortleft.gif
icon_sortright.gif icon_sortup.gif
icon_success_lrg.gif icon_success_sml.gif
icon_usergroups_lrg.gif icon_usergroups_sml.gif
icon_warning_lrg.gif icon_warning_sml.gif
icon_waste_lrg.gif icon_waste_sml.gif
newwindow-classic.png newwindow.png none.png
nw_maj.gif nw_maj_hi.gif nw_maj_rond.gif nw_med.gif
nw_med_hi.gif nw_med_rond.gif nw_min.gif
nw_min_036.gif nw_min_hi.gif pdf.gif
poweredby_036.gif product_logo.gif remove.gif
se_maj_rond.gif state-helper-classes.gif strich.gif
sw_maj_rond.gif sw_med_rond.gif sw_min.gif
tag-integer-encoding.png update.gif
www/subprojects/snickers/images/logos maven-bolt.png
maven-brewed.png maven-build-successfull.png
maven-built.png maven-bulldozer.png
maven-button-1.png maven-button-2.png
maven-button-3.png maven-button-4.png
maven-button-5.png maven-button-black.png
maven-button-blue.png maven-button-copper.png
maven-button-green.png maven-button-pinky.png
maven-button-purple.png maven-button-teal.png
maven-feather.png maven-frankenstein.png
maven-mavenfactured.png maven-petesucks.png
maven-propaganda-2.png maven-propaganda.png
maven-redgreen.png
www/subprojects/snickers/style maven-base.css
maven-classic.css maven-theme.css
Log:
removing this for new asn1 name
Revision Changes Path
1.6 +19 -28
incubator-directory/www/subprojects/directory-naming/building.html
Index: building.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/building.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- building.html 19 Dec 2004 18:50:52 -0000 1.5
+++ building.html 29 Dec 2004 00:00:20 -0000 1.6
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
@@ -49,9 +49,12 @@
<a href="../seda/index.html">SEDA</a>
</div><div class="clear"><hr></hr></div></div><div
id="leftColumn"><div id="navcolumn"><div id="menuNaming"><h5>Naming</h5><ul><li
class="none"><a href="index.html">Overview</a></li><li class="none"><strong><a
href="building.html">Building</a></strong></li><li class="none"><a
href="using.html">Using</a></li></ul></div><div
id="menuProject_Information"><h5>Project Information</h5><ul><li
class="none"><a href="http://wiki.apache.org/directory" class="externalLink"
title="External Link">Wiki</a></li><li class="none"><a
href="http://nagoya.apache.org/jira/browse/DIRNAMING" class="externalLink"
title="External Link">Open Issues</a></li><li class="none"><a
href="http://svn.apache.org/viewcvs.cgi/incubator/directory/naming/trunk/?root=Apache-SVN"
class="externalLink" title="External Link">Source
Repositories</a></li></ul></div><div id="menuProject_Documentation"><h5>Project
Documentation</h5><ul><li class="none"><a href="index.html">About
directory-naming</a></li><li class="collapsed"><a
href="project-info.html">Project Info</a></li><li class="none"><a
href="maven-reports.html">Project Reports</a></li><li class="none"><a
href="http://maven.apache.org/development-process.html" class="externalLink"
title="External Link">Development Process</a></li></ul></div></div></div><div
id="bodyColumn"><div class="contentBox"><div class="section"><a
name="Maven_targets"></a><h2>Maven targets</h2><p>
- Naming consists of two subprojects: core and factory. These can be
built separately
- by executing maven build targets from the /core or /factory
directories. All subprojects can be
- built using the following targets, executed from the top level
directory/naming directory:
+ Naming consists of six subprojects: naming-core, naming-factory,
+ naming-java, naming-management, naming-resources, and naming-config.
+ These can be built separately by executing maven build targets from
+ the subproject directories. All subprojects can be
+ built using the following targets, executed from the top level
+ directory/naming directory:
<ul>
<li>multiproject:clean -- cleans all subprojects</li>
<li>multiproject:install -- builds, tests and jars all
subprojects</li>
@@ -59,26 +62,14 @@
<li>clean -- cleans top level project</li>
</ul>
</p></div><div class="section"><a
name="Dependencies"></a><h2>Dependencies</h2><p>
- The dependencies common to both subprojects are the ones that appear in
the top level
- project.xml, viz.:
- <ul>
- <li>Commons Collections 2.1</li>
- <li>JUnit 3.7 (compile time only)</li>
- </ul>
- The core subproject also depends on the following for its MBean and
Service:
- <ul>
- <li>MX4j's JMX 1.1.1 (</li>
- </ul>
- The factory subproject depends on core and has the following additional
dependencies:
- <ul>
- <li>Commons DBCP 1.0 and Commons Pool 1.0.1 (only required if using
the default
- resource factory to obtain database connections)</li>
- <li>Commons Digester 1.4.1 (for reading XML configuration files)</li>
- <li>Commons Logging 1.0.3</li>
- <li>Commons BeanUtils 1.6.1 (runtime only for digester)</li>
- <li>Commons Lang 1.0.1</li>
- <li>jta-spec 1.0.1 (uses the spec jars from geronimo for compiling)
</li>
- <li>javamail 1.2 (uses the spec jars from geronimo for
compiling)</li>
- <li>hsqldb 1.7.1 (testing only - used to setup a simple database to
perform resource factory testing)</li>
- </ul>
+ All other subprojects depend on naming-core, which has no external
+ dependencies beyond jdk 1.4+. The dependencies of the other subprojects
are:
+ <table class="bodyTable"><tr
class="b"><th>Subproject</th><th>Dependencies</th></tr><tr class="a"><td>Naming
Java</td><td>naming-core</td></tr><tr class="b"><td>Naming
Factory</td><td>naming-core, geronimo-spec-javamail (1.3.1-rc1)
+ </td></tr><tr class="a"><td>Naming
Resources</td><td>naming-core, commons-collections (3.1)</td></tr><tr
class="b"><td>Naming Management</td><td>naming-core, naming-java, mx4j-jmx
(1.1.1)</td></tr><tr class="a"><td>Naming Config</td><td>naming-core,
naming-factory, naming-java,
+ commons-logging (1.0.3), commons-collections (3.1),
+ commons-beanutils (1.6.1), commons-digester (1.4.1),
+ commons-lang (1.0.1), commons-dbcp (1.0),
+ commons-pool (1.0.1),
+ hsqldb (1.7.1, test runtime only)
+ </td></tr></table>
</p></div></div></div><div class="clear"><hr></hr></div><div
id="footer"><div class="xright">� 2003-2004, Apache Software
Foundation</div><div class="clear"><hr></hr></div></div></body></html>
1.5 +3 -3
incubator-directory/www/subprojects/directory-naming/cvs-usage.html
Index: cvs-usage.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/cvs-usage.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- cvs-usage.html 19 Dec 2004 18:50:52 -0000 1.4
+++ cvs-usage.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
1.5 +4 -7
incubator-directory/www/subprojects/directory-naming/dependencies.html
Index: dependencies.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/dependencies.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- dependencies.html 19 Dec 2004 18:50:52 -0000 1.4
+++ dependencies.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
@@ -54,9 +54,6 @@
</p><table class="bodyTable"><thead>
<tr class="b"><th>Artifact
ID</th><th>Type</th><th>Version</th><th>URL</th></tr>
</thead><tbody>
- <tr
class="a"><td>commons-collections</td><td>jar</td><td>2.1</td><td>
- </td></tr>
- <tr class="b"><td>junit</td><td>jar</td><td>3.8.1</td><td>
- <a href=""></a>
+ <tr class="a"><td>junit</td><td>jar</td><td>3.8.1</td><td>
</td></tr>
</tbody></table></div></div></div><div
class="clear"><hr></hr></div><div id="footer"><div class="xright">� 2003-2004,
Apache Software Foundation</div><div
class="clear"><hr></hr></div></div></body></html>
1.5 +3 -3
incubator-directory/www/subprojects/directory-naming/downloads.html
Index: downloads.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/downloads.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- downloads.html 19 Dec 2004 18:50:52 -0000 1.4
+++ downloads.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
1.5 +25 -6
incubator-directory/www/subprojects/directory-naming/index.html
Index: index.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/index.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- index.html 19 Dec 2004 18:50:52 -0000 1.4
+++ index.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
@@ -48,7 +48,26 @@
<a href="../seda/index.html">SEDA</a>
- </div><div class="clear"><hr></hr></div></div><div
id="leftColumn"><div id="navcolumn"><div id="menuNaming"><h5>Naming</h5><ul><li
class="none"><strong><a href="index.html">Overview</a></strong></li><li
class="none"><a href="building.html">Building</a></li><li class="none"><a
href="using.html">Using</a></li></ul></div><div
id="menuProject_Information"><h5>Project Information</h5><ul><li
class="none"><a href="http://wiki.apache.org/directory" class="externalLink"
title="External Link">Wiki</a></li><li class="none"><a
href="http://nagoya.apache.org/jira/browse/DIRNAMING" class="externalLink"
title="External Link">Open Issues</a></li><li class="none"><a
href="http://svn.apache.org/viewcvs.cgi/incubator/directory/naming/trunk/?root=Apache-SVN"
class="externalLink" title="External Link">Source
Repositories</a></li></ul></div><div id="menuProject_Documentation"><h5>Project
Documentation</h5><ul><li class="none"><strong><a href="index.html">About
directory-naming</a></strong></li><li class="collapsed"><a
href="project-info.html">Project Info</a></li><li class="none"><a
href="maven-reports.html">Project Reports</a></li><li class="none"><a
href="http://maven.apache.org/development-process.html" class="externalLink"
title="External Link">Development Process</a></li></ul></div></div></div><div
id="bodyColumn"><div class="contentBox"><div class="section"><a
name="What_is_Naming_"></a><h2>What is Naming?</h2><p>
+ </div><div class="clear"><hr></hr></div></div><div
id="leftColumn"><div id="navcolumn"><div id="menuNaming"><h5>Naming</h5><ul><li
class="none"><strong><a href="index.html">Overview</a></strong></li><li
class="none"><a href="building.html">Building</a></li><li class="none"><a
href="using.html">Using</a></li></ul></div><div
id="menuProject_Information"><h5>Project Information</h5><ul><li
class="none"><a href="http://wiki.apache.org/directory" class="externalLink"
title="External Link">Wiki</a></li><li class="none"><a
href="http://nagoya.apache.org/jira/browse/DIRNAMING" class="externalLink"
title="External Link">Open Issues</a></li><li class="none"><a
href="http://svn.apache.org/viewcvs.cgi/incubator/directory/naming/trunk/?root=Apache-SVN"
class="externalLink" title="External Link">Source
Repositories</a></li></ul></div><div id="menuProject_Documentation"><h5>Project
Documentation</h5><ul><li class="none"><strong><a href="index.html">About
directory-naming</a></strong></li><li class="collapsed"><a
href="project-info.html">Project Info</a></li><li class="none"><a
href="maven-reports.html">Project Reports</a></li><li class="none"><a
href="http://maven.apache.org/development-process.html" class="externalLink"
title="External Link">Development Process</a></li></ul></div></div></div><div
id="bodyColumn"><div class="contentBox"><div class="section"><a
name="Overview"></a><h2>Overview</h2><p>
Naming is a lightweight, in-memory JNDI service provider. The
- initial code base was extracted from the Jakarta Tomcat JNDI
implementation.
- </p></div></div></div><div class="clear"><hr></hr></div><div
id="footer"><div class="xright">� 2003-2004, Apache Software
Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file
+ initial code base was extracted from the Jakarta Tomcat JNDI
implementation.
+ </p><p>
+ The Tomcat implementation is designed to support the "java:comp/env"
+ environment naming context for J2EE web applications. Support for
+ JNDI resource factories and directory and war contexts are included.
+ In addition, naming contexts can be bound to threads or classloaders
+ and access to contexts can be controlled using security tokens.
+ </p><p>
+ To provide similar behavior to Tomcat's xml-based configuration of JNDI
+ resources, an <code>XmlConfigurator</code> is included with Naming.
+ </p></div><div class="section"><a
name="Subprojects"></a><h2>Subprojects</h2><p>
+ To enable flexible deployment with limited dependencies, Naming is
+ divided in 6 subprojects, each producing a separate jar artifact.
+ <table class="bodyTable"><tr
class="a"><th>Subproject</th><th>Description</th><th>Dependencies</th></tr><tr
class="b"><td>Naming Core</td><td>Core JNDI context
implementation</td><td>none</td></tr><tr class="a"><td>Naming
Java</td><td><code>javaURLContextFactory</code>
implementation</td><td>naming-core</td></tr><tr class="b"><td>Naming
Factory</td><td>JNDI Object factories</td><td>naming-core,
geronimo-spec-javamail (1.3.1-rc1)</td></tr><tr class="a"><td>Naming
Resources</td><td>File / web resource contexts</td><td>naming-core,
commons-collections (3.1)</td></tr><tr class="b"><td>Naming
Management</td><td>JMX management interface</td><td>naming-core, naming-java,
mx4j-jmx (1.1.1)</td></tr><tr class="a"><td>Naming Config</td><td>XML
configuration</td><td>naming-core, naming-factory, naming-java,
+ commons-logging (1.0.3), commons-collections (3.1),
+ commons-beanutils (1.6.1), commons-digester (1.4.1),
+ commons-lang (1.0.1), commons-dbcp (1.0),
+ commons-pool (1.0.1),
+ hsqldb (1.7.1, test runtime only)
+ </td></tr></table>
+ </p></div></div></div><div class="clear"><hr></hr></div><div
id="footer"><div class="xright">� 2003-2004, Apache Software
Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file
1.5 +3 -3
incubator-directory/www/subprojects/directory-naming/issue-tracking.html
Index: issue-tracking.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/issue-tracking.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- issue-tracking.html 19 Dec 2004 18:50:52 -0000 1.4
+++ issue-tracking.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
1.5 +6 -6
incubator-directory/www/subprojects/directory-naming/mail-lists.html
Index: mail-lists.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/mail-lists.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- mail-lists.html 19 Dec 2004 18:50:52 -0000 1.4
+++ mail-lists.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
@@ -53,16 +53,16 @@
project. For each list, there is a subscribe, unsubscribe, and an
archive link.
</p><table class="bodyTable"><thead>
- <tr class="a"><th>List
Name</th><th>Subscribe</th><th>Unsubscribe</th><th>Archive</th></tr>
+ <tr class="b"><th>List
Name</th><th>Subscribe</th><th>Unsubscribe</th><th>Archive</th></tr>
</thead><tbody>
- <tr class="b"><td>Directory User List</td><td>
+ <tr class="a"><td>Directory User List</td><td>
<a href="mailto:[EMAIL PROTECTED]">Subscribe</a>
</td><td>
<a href="mailto:[EMAIL PROTECTED]">Unsubscribe</a>
</td><td>
<a href="http://nagoya.apache.org:8080/eyebrowse/[EMAIL
PROTECTED]" class="externalLink" title="External Link">Archive</a>
</td></tr>
- <tr class="a"><td>Directory Developer List</td><td>
+ <tr class="b"><td>Directory Developer List</td><td>
<a href="mailto:[EMAIL PROTECTED]">Subscribe</a>
</td><td>
<a href="mailto:[EMAIL PROTECTED]">Unsubscribe</a>
1.5 +3 -3
incubator-directory/www/subprojects/directory-naming/maven-reports.html
Index: maven-reports.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/maven-reports.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- maven-reports.html 19 Dec 2004 18:50:52 -0000 1.4
+++ maven-reports.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
1.5 +8 -8
incubator-directory/www/subprojects/directory-naming/project-info.html
Index: project-info.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/project-info.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- project-info.html 19 Dec 2004 18:50:52 -0000 1.4
+++ project-info.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
@@ -54,20 +54,20 @@
of this content is automatically generated by
<a href="http://maven.apache.org/" class="externalLink"
title="External Link">Maven</a> on
behalf of the project.
- </p><div class="subsection"><a
name="Overview"></a><h3>Overview</h3><table class="bodyTable"><tr
class="b"><th>Document</th><th>Description</th></tr><tr class="a"><td><a
href="mail-lists.html">Mailing Lists</a></td><td>
+ </p><div class="subsection"><a
name="Overview"></a><h3>Overview</h3><table class="bodyTable"><tr
class="a"><th>Document</th><th>Description</th></tr><tr class="b"><td><a
href="mail-lists.html">Mailing Lists</a></td><td>
This document provides subscription and archive
information for this project's mailing lists.
- </td></tr><tr class="b"><td><a href="team-list.html">Project
Team</a></td><td>
+ </td></tr><tr class="a"><td><a href="team-list.html">Project
Team</a></td><td>
This document provides information on the members of
this project. These are the individuals who have
contributed to the project in one form or another.
- </td></tr><tr class="a"><td><a
href="dependencies.html">Dependencies</a></td><td>
+ </td></tr><tr class="b"><td><a
href="dependencies.html">Dependencies</a></td><td>
This document lists the projects dependencies and provides
information on each dependency.
- </td></tr><tr class="b"><td><a href="cvs-usage.html">Source
Repository</a></td><td>
+ </td></tr><tr class="a"><td><a href="cvs-usage.html">Source
Repository</a></td><td>
This is a link to the online source repository that can be
viewed via a web browser.
- </td></tr><tr class="a"><td><a href="issue-tracking.html">Issue
Tracking</a></td><td>
+ </td></tr><tr class="b"><td><a href="issue-tracking.html">Issue
Tracking</a></td><td>
This is a link to the issue tracking system for this
project. Issues (bugs, features, change requests) can be
created and queried using this link.
1.2 +4 -4
incubator-directory/www/subprojects/directory-naming/projects-overview.html
Index: projects-overview.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/projects-overview.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- projects-overview.html 19 Dec 2004 18:50:52 -0000 1.1
+++ projects-overview.html 29 Dec 2004 00:00:20 -0000 1.2
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta
name="author" content="Michal Maczka"></meta><meta name="email" content="[EMAIL
PROTECTED]"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
@@ -49,5 +49,5 @@
<a href="../seda/index.html">SEDA</a>
</div><div class="clear"><hr></hr></div></div><div
id="leftColumn"><div id="navcolumn"><div id="menuNaming"><h5>Naming</h5><ul><li
class="none"><a href="index.html">Overview</a></li><li class="none"><a
href="building.html">Building</a></li><li class="none"><a
href="using.html">Using</a></li></ul></div><div
id="menuProject_Information"><h5>Project Information</h5><ul><li
class="none"><a href="http://wiki.apache.org/directory" class="externalLink"
title="External Link">Wiki</a></li><li class="none"><a
href="http://nagoya.apache.org/jira/browse/DIRNAMING" class="externalLink"
title="External Link">Open Issues</a></li><li class="none"><a
href="http://svn.apache.org/viewcvs.cgi/incubator/directory/naming/trunk/?root=Apache-SVN"
class="externalLink" title="External Link">Source
Repositories</a></li></ul></div><div id="menuProject_Documentation"><h5>Project
Documentation</h5><ul><li class="none"><a href="index.html">About
directory-naming</a></li><li class="collapsed"><a
href="project-info.html">Project Info</a></li><li class="none"><a
href="maven-reports.html">Project Reports</a></li><li class="none"><a
href="http://maven.apache.org/development-process.html" class="externalLink"
title="External Link">Development Process</a></li></ul></div></div></div><div
id="bodyColumn"><div class="contentBox"><div class="section"><a
name="Overview_of_projects"></a><h2>Overview of projects</h2><p>
- <table class="bodyTable"><tr class="a"><th><a
href="multiproject/directory-naming-core/index.html">Core</a></th><td>Apache
Directory Naming Component</td></tr><tr class="b"><th><a
href="multiproject/directory-naming-factory/index.html">Naming
Factories</a></th><td>Apache Directory Naming Component</td></tr></table>
+ <table class="bodyTable"><tr class="a"><th><a
href="multiproject/naming-core/index.html">Naming Core</a></th><td>Apache
Directory Naming Component</td></tr><tr class="b"><th><a
href="multiproject/naming-factory/index.html">Naming
Factories</a></th><td>Apache Directory Naming Component</td></tr><tr
class="a"><th><a href="multiproject/naming-java/index.html">Naming
Java</a></th><td>Apache Directory Naming Component</td></tr><tr
class="b"><th><a href="multiproject/naming-config/index.html">Naming
Config</a></th><td>Apache Directory Naming Component</td></tr><tr
class="a"><th><a href="multiproject/naming-resources/index.html">Naming
Resources</a></th><td>Apache Directory Naming Component</td></tr><tr
class="b"><th><a href="multiproject/naming-management/index.html">Naming
Management</a></th><td>Apache Directory Naming Component</td></tr></table>
</p></div></div></div><div class="clear"><hr></hr></div><div
id="footer"><div class="xright">� 2003-2004, Apache Software
Foundation</div><div class="clear"><hr></hr></div></div></body></html>
1.5 +7 -7
incubator-directory/www/subprojects/directory-naming/team-list.html
Index: team-list.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/team-list.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- team-list.html 19 Dec 2004 18:50:52 -0000 1.4
+++ team-list.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -17,8 +17,8 @@
offsetDate("developer-brett", "+10");
}
</script></head><body class="composite" onload="init();"><div
id="banner"><a href="http://www.apache.org" id="organizationLogo"><img
alt="Apache Software Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -41,7 +41,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
@@ -80,15 +80,15 @@
The following is a list of developers with commit privileges that
have
directly contributed to the project in one way or another.
</p><table class="bodyTable"><thead>
- <tr
class="b"><th>Name</th><th>Id</th><th>Email</th><th>Organization</th><th>Roles</th><th>TZ
Offset</th><th>Time</th></tr>
+ <tr
class="a"><th>Name</th><th>Id</th><th>Email</th><th>Organization</th><th>Roles</th><th>TZ
Offset</th><th>Time</th></tr>
</thead><tbody>
- <tr class="a"><td>Henri Yandell</td><td><a
name="bayard"></a>bayard</td><td><a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a></td><td></td><td>
+ <tr class="b"><td>Henri Yandell</td><td><a
name="bayard"></a>bayard</td><td><a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a></td><td></td><td>
Java Developer<br></br>
</td><td></td><td><span
id="developer-bayard">Unknown</span></td></tr>
- <tr class="b"><td>Phil Steitz</td><td><a
name="psteitz"></a>psteitz</td><td><a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a></td><td></td><td>
+ <tr class="a"><td>Phil Steitz</td><td><a
name="psteitz"></a>psteitz</td><td><a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a></td><td></td><td>
Java Developer<br></br>
</td><td></td><td><span
id="developer-psteitz">Unknown</span></td></tr>
- <tr class="a"><td>Brett Porter</td><td><a
name="brett"></a>brett</td><td><a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a></td><td>f2 network</td><td>
+ <tr class="b"><td>Brett Porter</td><td><a
name="brett"></a>brett</td><td><a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a></td><td>f2 network</td><td>
Java Developer<br></br>
</td><td>+10</td><td><span
id="developer-brett">Unknown</span></td></tr>
</tbody></table></div><div class="subsection"><a
name="Contributors"></a><h3>Contributors</h3><p>
1.5 +110 -58
incubator-directory/www/subprojects/directory-naming/using.html
Index: using.html
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/using.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- using.html 19 Dec 2004 18:50:52 -0000 1.4
+++ using.html 29 Dec 2004 00:00:20 -0000 1.5
@@ -2,8 +2,8 @@
@import url("./style/maven-base.css");
@import
url("./style/maven-theme.css");</style><link rel="stylesheet"
href="./style/print.css" type="text/css" media="print"></link><meta
http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"></meta></head><body class="composite"><div id="banner"><a
href="http://www.apache.org" id="organizationLogo"><img alt="Apache Software
Foundation"
src="http://incubator.apache.org/images/apache-incubator-logo.png"></img></a><a
href="http://incubator.apache.org/directory/subprojects/directory-naming/"
id="projectLogo"><img alt="directory-naming"
src="http://incubator.apache.org/directory/images/apache-directory-logo.png"></img></a><div
class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft">
- Last published: 19 December 2004
- | Doc for SNAPSHOT</div><div class="xright">
+ Last published: 28 December 2004
+ | Doc for 0.8</div><div class="xright">
<a href="../../index.html">Directory</a>
@@ -26,7 +26,7 @@
<span class="separator">|</span>
- <a href="../snickers/index.html">Snickers</a>
+ <a href="../asn1/index.html">ASN.1</a>
@@ -48,16 +48,45 @@
<a href="../seda/index.html">SEDA</a>
- </div><div class="clear"><hr></hr></div></div><div
id="leftColumn"><div id="navcolumn"><div id="menuNaming"><h5>Naming</h5><ul><li
class="none"><a href="index.html">Overview</a></li><li class="none"><a
href="building.html">Building</a></li><li class="none"><strong><a
href="using.html">Using</a></strong></li></ul></div><div
id="menuProject_Information"><h5>Project Information</h5><ul><li
class="none"><a href="http://wiki.apache.org/directory" class="externalLink"
title="External Link">Wiki</a></li><li class="none"><a
href="http://nagoya.apache.org/jira/browse/DIRNAMING" class="externalLink"
title="External Link">Open Issues</a></li><li class="none"><a
href="http://svn.apache.org/viewcvs.cgi/incubator/directory/naming/trunk/?root=Apache-SVN"
class="externalLink" title="External Link">Source
Repositories</a></li></ul></div><div id="menuProject_Documentation"><h5>Project
Documentation</h5><ul><li class="none"><a href="index.html">About
directory-naming</a></li><li class="collapsed"><a
href="project-info.html">Project Info</a></li><li class="none"><a
href="maven-reports.html">Project Reports</a></li><li class="none"><a
href="http://maven.apache.org/development-process.html" class="externalLink"
title="External Link">Development Process</a></li></ul></div></div></div><div
id="bodyColumn"><div class="contentBox"><div class="section"><a
name="Introduction"></a><h2>Introduction</h2><p>
- </p></div><div class="section"><a
name="Installation_and_setup"></a><h2>Installation and setup</h2><p>
- </p></div><div class="section"><a
name="Examples"></a><h2>Examples</h2><div class="subsection"><a
name="Configuring_JNDI_resources_using_XMLConfigurator"></a><h3>Configuring
JNDI resources using XMLConfigurator</h3><p>
- The <code>XMLConfigurator</code> allows you to configure and load JNDI
- resources using xml configuration files using a syntax very similar to
that
- used by Jakarta Tomcat's server.xml file. [FIXME -- add schema/dtd
reference.]
- For a full introduction to JNDI resources and resource factories, see
+ </div><div class="clear"><hr></hr></div></div><div
id="leftColumn"><div id="navcolumn"><div id="menuNaming"><h5>Naming</h5><ul><li
class="none"><a href="index.html">Overview</a></li><li class="none"><a
href="building.html">Building</a></li><li class="none"><strong><a
href="using.html">Using</a></strong></li></ul></div><div
id="menuProject_Information"><h5>Project Information</h5><ul><li
class="none"><a href="http://wiki.apache.org/directory" class="externalLink"
title="External Link">Wiki</a></li><li class="none"><a
href="http://nagoya.apache.org/jira/browse/DIRNAMING" class="externalLink"
title="External Link">Open Issues</a></li><li class="none"><a
href="http://svn.apache.org/viewcvs.cgi/incubator/directory/naming/trunk/?root=Apache-SVN"
class="externalLink" title="External Link">Source
Repositories</a></li></ul></div><div id="menuProject_Documentation"><h5>Project
Documentation</h5><ul><li class="none"><a href="index.html">About
directory-naming</a></li><li class="collapsed"><a
href="project-info.html">Project Info</a></li><li class="none"><a
href="maven-reports.html">Project Reports</a></li><li class="none"><a
href="http://maven.apache.org/development-process.html" class="externalLink"
title="External Link">Development Process</a></li></ul></div></div></div><div
id="bodyColumn"><div class="contentBox"><div class="section"><a
name="Configuring_JNDI_resources_using_XMLConfigurator"></a><h2>Configuring
JNDI resources using XMLConfigurator</h2><p>
+ The <code>XMLConfigurator</code> allows you set JNDI environment
entries
+ and to configure and load JNDI resources using xml configuration files.
+ The xml syntax is similar to that used by Jakarta Tomcat's
+ <code>server.xml</code> and the J2EE <code>web.xml</code>
+ configuration files. For a full introduction to JNDI resources and
+ resource factories, see
<a
href="http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html"
class="externalLink" title="External Link">
Tomcat JNDI Resources HOW-TO</a>
</p><p>
+ The structure of the configuation file is
+
+ <div class="source"><pre>
+<naming>
+ <context>
+ <environment name="..." value="..." type="..." />
+ ...
+ <resource name="..." type="...">
+ <parameter>
+ <name>...</name>
+ <value>...</value>
+ </parameter>
+ ...
+ </resource>
+ </context>
+</naming>
+
+ </pre></div>
+
+ </p><p>
+ The <code>environment</code> entries achieve the same effect as
+ <code>env-entry</code> elements in <code>web.xml</code>. The
+ <code>resource</code> elements behave like <code>Resource</code>
elements
+ in <code>server.xml</code>. Note that here "resource" starts with a
+ lower case "r" and the <code>parameter</code> elements are its content
+ (In Tomcat's <code>server.xml</code>, <code>Resource</code> is an empty
+ tag and the parameters are included in a <code>ResourceParams</code>
+ element.)
+ </p><p>
Here is an example, showing how to configure a database connection pool
and
then get a connection from the pool in your application.
</p><p>
@@ -65,28 +94,28 @@
configuration file, like so:
<div class="source"><pre>
- <naming>
- <context>
- <resource name="jdbc/pool" type="javax.sql.DataSource">
- <parameter>
- <name>driverClassName</name>
- <value>org.hsqldb.jdbcDriver</value>
- </parameter>
- <parameter>
- <name>url</name>
- <value>jdbc:hsqldb:target/hsqldb</value>
- </parameter>
- <parameter>
- <name>username</name>
- <value>sa</value>
- </parameter>
- <parameter>
- <name>password</name>
- <value></value>
- </parameter>
- </resource>
- </context>
- </naming>
+ <naming>
+ <context>
+ <resource name="jdbc/pool" type="javax.sql.DataSource">
+ <parameter>
+ <name>driverClassName</name>
+ <value>org.hsqldb.jdbcDriver</value>
+ </parameter>
+ <parameter>
+ <name>url</name>
+ <value>jdbc:hsqldb:target/hsqldb</value>
+ </parameter>
+ <parameter>
+ <name>username</name>
+ <value>sa</value>
+ </parameter>
+ <parameter>
+ <name>password</name>
+ <value></value>
+ </parameter>
+ </resource>
+ </context>
+ </naming>
</pre></div>
@@ -107,7 +136,7 @@
is stored in "/example-jndi.xml", you can do this in one line:
<div class="source"><pre>
-
XmlConfigurator.loadConfiguration(getClass().getResourceAsStream("/example-jndi.xml"));
+XmlConfigurator.loadConfiguration(getClass().getResourceAsStream("/example-jndi.xml"));
</pre></div>
</p>
@@ -117,9 +146,9 @@
Perform a JNDI lookup to get a DataSource reference:
<div class="source"><pre>
- Context ctx = new InitialContext();
- Context env = (Context) ctx.lookup("java:comp/env");
- DataSource ds = (DataSource) env.lookup("jdbc/pool");
+Context ctx = new InitialContext();
+Context env = (Context) ctx.lookup("java:comp/env");
+DataSource ds = (DataSource) env.lookup("jdbc/pool");
</pre></div>
</p>
@@ -129,24 +158,47 @@
Use the reference to access the database:
<div class="source"><pre>
- Connection con = null;
- try {
- con = ds.getConnection();
- // use con to access db
- ...
- } finally {
- // cleanup database access objects
- ...
- if (con != null) {
- con.close();
- }
- }
+Connection con = null;
+try {
+ con = ds.getConnection();
+ // use con to access db
+ ...
+ } finally {
+ // cleanup database access objects
+ ...
+ if (con != null) {
+ con.close();
+ }
+}
</pre></div>
</p>
</li>
</ol>
- </p></div><div class="subsection"><a
name="Using_the_Naming_APIs_directly_to_set_up_JNDI"></a><h3>Using the Naming
APIs directly to set up JNDI</h3><p>
+ </p><p>
+ As in the example above, by default the root of the namespace created by
+ the <code>XmlConfigurator</code> is "java:comp/env". This may be
overridden
+ by supplying a <code>name</code> attribute in the top-level
+ <code>context</code> element. For example,
+
+ <div class="source"><pre>
+<naming>
+ <context name="myApp/config">
+ ... same as above ...
+ </context>
+</naming>
+
+ </pre></div>
+
+ would allow you to use
+
+ <div class="source"><pre>
+Context ctx = new InitialContext();
+Context env = (Context) ctx.lookup("myApp/config");
+DataSource ds = (DataSource) env.lookup("jdbc/pool");
+ </pre></div>
+
+ </p></div><div class="section"><a
name="Using_the_Naming_APIs_directly_to_set_up_JNDI"></a><h2>Using the Naming
APIs directly to set up JNDI</h2><p>
To set up and use a JNDI naming context using the JNDI APIs directly,
you need to set some JNDI environment properties, create an initial
context
and then use the standard JNDI APIs to set up bindings and perform
lookups.
@@ -155,10 +207,10 @@
for the initial context, or you can do it as follows in your code:
<div class="source"><pre>
- Hashtable env = new Hashtable();
- env.put(Context.INITIAL_CONTEXT_FACTORY,
- "org.apache.naming.java.javaURLContextFactory");
- env.put(Context.URL_PKG_PREFIXES,"org.apache.naming");
+Hashtable env = new Hashtable();
+env.put(Context.INITIAL_CONTEXT_FACTORY,
+ "org.apache.naming.java.javaURLContextFactory");
+env.put(Context.URL_PKG_PREFIXES,"org.apache.naming");
</pre></div>
</p><p>
@@ -173,10 +225,10 @@
<code>javax.naming.Context</code> API:
<div class="source"><pre>
- compContext = initialContext.createSubcontext("java:comp");
- envContext = compContext.createSubcontext("env");
- envContext.bind("host", "www.apache.org");
- envContext.bind("port", new Integer(80));
+compContext = initialContext.createSubcontext("java:comp");
+envContext = compContext.createSubcontext("env");
+envContext.bind("host", "www.apache.org");
+envContext.bind("port", new Integer(80));
</pre></div>
</p><p>
@@ -184,4 +236,4 @@
a <code>String</code> holding the value "www.apache.org" and
<code>initialContext.lookup("java:comp/env/port"))</code> will return
an
<code>Integer</code> with <code>intValue</code> equal to 80.
- </p></div></div></div></div><div class="clear"><hr></hr></div><div
id="footer"><div class="xright">� 2003-2004, Apache Software
Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file
+ </p></div></div></div><div class="clear"><hr></hr></div><div
id="footer"><div class="xright">� 2003-2004, Apache Software
Foundation</div><div class="clear"><hr></hr></div></div></body></html>
\ No newline at end of file
1.3 +0 -0
incubator-directory/www/subprojects/directory-naming/style/maven-classic.css
Index: maven-classic.css
===================================================================
RCS file:
/home/cvs/incubator-directory/www/subprojects/directory-naming/style/maven-classic.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3