[exo-jcr-commits] exo-jcr SVN: r3257 - jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Oct 7 03:26:21 EDT 2010


Author: tolusha
Date: 2010-10-07 03:26:21 -0400 (Thu, 07 Oct 2010)
New Revision: 3257

Modified:
   jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/initialcontext-binder-service.xml
   jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/jndi-naming.xml
Log:
EXOJCR-977: support different files for different InitialContextBinder instances

Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/initialcontext-binder-service.xml
===================================================================
--- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/initialcontext-binder-service.xml	2010-10-07 07:25:24 UTC (rev 3256)
+++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/initialcontext-binder-service.xml	2010-10-07 07:26:21 UTC (rev 3257)
@@ -1,59 +1,47 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
-"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
-<chapter id="Kernel.InitialContextBinderservice">
-  <?dbhtml filename="ch-initialcontext-binder-service.html"?>
-  <title>Initial Context Binder service</title>
-
-  <para>Initial Context Binder is responsible for binding references at
-  runtime, persisting in file and automatically rebinding after restart. Java
-  temp directory is used to persist references in bind-references.xml
-  file.</para>
-
-  <note>
-    <para>Available since Kernel 2.2.1-GA</para>
-  </note>
-
-  <section>
-    <title>API</title>
-
-    <para>Service provide methods for binding reference.</para>
-
-    <programlisting>public void bind(String bindName, String className, String factory, String factoryLocation, Map&lt;String, String&gt; refAddr) throws NamingException, FileNotFoundException, XMLStreamExcept</programlisting>
-
-    <itemizedlist>
-      <listitem>
-        <para>bindName - name of binding</para>
-      </listitem>
-
-      <listitem>
-        <para>className - the fully-qualified name of the class of the object
-        to which this Reference refers</para>
-      </listitem>
-
-      <listitem>
-        <para>factory - the name of the factory class for creating an instance
-        of the object to which this Reference refers</para>
-      </listitem>
-
-      <listitem>
-        <para>factoryLocation - the location of the factory class</para>
-      </listitem>
-
-      <listitem>
-        <para>refAddr - object's properties map</para>
-      </listitem>
-    </itemizedlist>
-  </section>
-
-  <section>
-    <title>Configuration</title>
-
-    <para>A configuration example</para>
-
-    <programlisting>&lt;component&gt; 
-   &lt;key&gt;org.exoplatform.services.naming.InitialContextBinder&lt;/key&gt; 
-   &lt;type&gt;org.exoplatform.services.naming.InitialContextBinder&lt;/type&gt; 
-&lt;/component&gt;</programlisting>
-  </section>
-</chapter>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<chapter id="Kernel.InitialContextBinderservice">
+  <?dbhtml filename="ch-initialcontext-binder-service.html"?>
+
+  <title>Initial Context Binder</title>
+
+  <para>Initial Context Binder is responsible for binding references at
+  runtime, persisting in file and automatically rebinding. Java temp directory
+  is used to persist references in bind-references.xml file by default. In
+  case when need to definde special file it can be done by add parameter to
+  <link linkend="Kernel.JNDINaming">InitialContextInitializer</link>
+  configuration.</para>
+
+  <section>
+    <title>API</title>
+
+    <para>Service provide methods for binding reference.</para>
+
+    <programlisting>public void bind(String bindName, String className, String factory, String factoryLocation, Map&lt;String, String&gt; refAddr) throws NamingException, FileNotFoundException, XMLStreamExcept</programlisting>
+
+    <itemizedlist>
+      <listitem>
+        <para>bindName - name of binding</para>
+      </listitem>
+
+      <listitem>
+        <para>className - the fully-qualified name of the class of the object
+        to which this Reference refers</para>
+      </listitem>
+
+      <listitem>
+        <para>factory - the name of the factory class for creating an instance
+        of the object to which this Reference refers</para>
+      </listitem>
+
+      <listitem>
+        <para>factoryLocation - the location of the factory class</para>
+      </listitem>
+
+      <listitem>
+        <para>refAddr - object's properties map</para>
+      </listitem>
+    </itemizedlist>
+  </section>
+</chapter>

Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/jndi-naming.xml
===================================================================
--- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/jndi-naming.xml	2010-10-07 07:25:24 UTC (rev 3256)
+++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/jndi-naming.xml	2010-10-07 07:26:21 UTC (rev 3257)
@@ -131,9 +131,18 @@
         &lt;description&gt;Mandatory initial context properties&lt;/description&gt;
         &lt;property name="java.naming.provider.url" value="rmi://localhost:9999"/&gt;
       &lt;/properties-param&gt;
+      &lt;value-param&gt;.
+        &lt;name&gt;bindings-store-path&lt;/name&gt;.
+        &lt;value&gt;bind-references.xml&lt;/value&gt;.
+      &lt;/value-param&gt;.
     &lt;/init-params&gt;
   &lt;/component&gt;</programlisting></para>
 
+    <para>where</para>
+
+    <para><emphasis role="bold">binding-store-path</emphasis> is file path
+    which stores binded datasources in runtime</para>
+
     <para>The <envar>BindReferencePlugin</envar> component plugin
     configuration example (for JDBC datasource):</para>
 
@@ -188,9 +197,7 @@
 
     <para><envar>InitialContextInitalizer</envar> also provides feature of
     references binding in runtime. References have bind in runtime will be
-    persisted and automatically rebinded on a next system start. Java temp
-    directory is used to persist references in bind-references.xml
-    file.</para>
+    persisted and automatically rebinded on a next system start.</para>
 
     <para>Service provides methods for binding reference.</para>
 



More information about the exo-jcr-commits mailing list