User: allsopp 
  Date: 01/01/17 23:44:25

  Modified:    documentation HowTo.css jca_config.html
  Log:
  A little more documentation. Added an "attributes" table class in the css and
  some padding in the colourful lists and footer.
  
  Revision  Changes    Path
  1.3       +20 -0     newsite/documentation/HowTo.css
  
  Index: HowTo.css
  ===================================================================
  RCS file: /products/cvs/ejboss/newsite/documentation/HowTo.css,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HowTo.css 2001/01/16 05:55:12     1.2
  +++ HowTo.css 2001/01/18 07:44:25     1.3
  @@ -34,6 +34,8 @@
        margin-top:1em;
        margin-bottom:1em;
        margin-right:0.1in;
  +     padding:1em;
  +     padding-bottom:1em;
        background-color:lightskyblue;
   }
   DIV OL {
  @@ -42,6 +44,8 @@
        margin-top:1em;
        margin-bottom:1em;
        margin-right:0.5in;
  +     padding-top:1em;
  +     padding-bottom:1em;
        background-color:khaki;
   }
   DIV UL {
  @@ -50,6 +54,8 @@
        margin-top:1em;
        margin-bottom:1em;
        margin-right:0.5in;
  +     padding-top:1em;
  +     padding-bottom:1em;
        background-color:lightgreen;
   }
   DIV B {
  @@ -81,4 +87,18 @@
   H4 {
        font-size:16pt;
        margin-left:0.5in;
  +}
  +TABLE.attributes {
  +     /*border:solid 1px;*/
  +}
  +TABLE.attributes CAPTION {
  +     font-weight:bold;
  +}
  +TABLE.attributes TH {
  +     border:solid 1px;
  +     padding:1em;
  +}
  +TABLE.attributes TD {
  +     border:solid 1px;
  +     padding:1em;
   }
  
  
  
  1.4       +149 -28   newsite/documentation/jca_config.html
  
  Index: jca_config.html
  ===================================================================
  RCS file: /products/cvs/ejboss/newsite/documentation/jca_config.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- jca_config.html   2001/01/16 08:14:49     1.3
  +++ jca_config.html   2001/01/18 07:44:25     1.4
  @@ -21,9 +21,24 @@
         page</a>.
       </div>
   
  -    <h2>Terminology</h2>
  +    <h2>Contents</h2>
   
       <div class="para">
  +      <ul>
  +        <li><a href="#terminology">Terminology</a></li>
  +
  +        <li><a href="#configuration">JBoss Configuration</a></li>
  +
  +        <li><a href="#example">Example - Black Box Example Adapter from
  +            Sun</a></li>
  +
  +        <li><a href="#status">Implementation Status</a></li>
  +      </ul>
  +    </div>
  +
  +    <h2><a name="terminology">Terminology</a></h2>
  +
  +    <div class="para">
         <dl>
           <dt>Resource</dt>
           <dd>an external system that provides some service to
  @@ -45,7 +60,7 @@
         </dl>
       </div>
   
  -    <h2>JBoss Configuration</h2>
  +    <h2><a name="configuration">JBoss Configuration</a></h2>
   
       <div class="para">
         There are two steps that must be performed to provide access to
  @@ -66,23 +81,23 @@
          required. The format for this entry is as follows.</div>
   
       <div class="code">
  -  &lt;mbean code="org.jboss.resource.ConnectionFactoryLoader"
  -         name="J2EE:service=ConnectionFactoryLoader"&gt;
  -    &lt;!-- General attributes --&gt;
  -    &lt;attribute name="name"&gt;value&lt;/attribute&gt;
  -
  -    &lt;!-- Security attributes --&gt;
  -    &lt;attribute name="name"&gt;value&lt;/attribute&gt;
  -
  -    &lt;!-- Connection pooling attributes --&gt;
  -    &lt;attribute name="name"&gt;value&lt;/attribute&gt;
  -  &lt;/mbean&gt;
  +&lt;mbean code="org.jboss.resource.ConnectionFactoryLoader"
  +       name="J2EE:service=ConnectionFactoryLoader"&gt;
  +  &lt;!-- General attributes --&gt;
  +  &lt;attribute name="name"&gt;value&lt;/attribute&gt;
  +
  +  &lt;!-- Security attributes --&gt;
  +  &lt;attribute name="name"&gt;value&lt;/attribute&gt;
  +
  +  &lt;!-- Connection pooling attributes --&gt;
  +  &lt;attribute name="name"&gt;value&lt;/attribute&gt;
  +&lt;/mbean&gt;
       </div>
   
       <h4>General Attributes</h4>
   
       <div class="para">
  -    <table border="1">
  +    <table class="attributes">
         <caption>General <code>ConnectionFactoryLoader</code> attributes</caption>
         <thead>
           <tr>
  @@ -153,7 +168,7 @@
         file.
       </div>
   
  -    <h2>Example - BlackBox Example Adapter from Sun</h2>
  +    <h2><a name="example">Example - Black Box Example Adapter from Sun</a></h2>
   
       <div class="para">
         For this example you will need Sun's example resource adapter,
  @@ -181,21 +196,113 @@
         following in <code>jboss.jcml</code>.
       </div>
   
  +    <div class="code">
  +&lt;mbean code="org.jboss.jdbc.RawXADataSourceLoader"
  +       name="DefaultDomain:service=RawXADataSourceLoader,name=BlackBoxXADS"&gt;
  +  &lt;attribute name="PoolName"&gt;BlackBoxXADS&lt;/attribute&gt;
  +  &lt;attribute
  +    
name="DataSourceClass"&gt;org.jboss.minerva.xa.XADataSourceImpl&lt;/attribute&gt;
  +  &lt;attribute name="Properties"&gt;
  +    URL=jdbc:HypersonicSQL:hsql://localhost:1476
  +  &lt;/attribute&gt;
  +&lt;/mbean&gt;
  +    </div>
  +
  +    <div class="para">
  +      The <code>RawXADataSourceLoader</code> MBean is very similar to
  +      set up to the <code>XADataSourceImpl</code> MBean, but the
  +      properties setting is slightly different.
  +    </div>
  +
  +    <div class="para">
  +      <table class="attributes">
  +        <caption><code>RawXADataSourceLoader</code> attributes</caption>
  +        <thead>
  +          <tr><th>Name</th><th>Description</th></tr>
  +        </thead>
  +        <tbody>
  +          <tr>
  +            <td>PoolName</td> <td>The name of this XA data source. The
  +                                  data source will be bound in JNDI
  +                                  under this name, in the
  +                                  <code>java:</code> namespace.</td>
  +          </tr>
  +          <tr>
  +            <td>DataSourceClass</td> <td>The name of the class that
  +                                         implements
  +                                         <code>javax.sql.XADataSource</code>.
  +                                         </td>
  +          </tr>
  +          <tr>
  +            <td>Properties</td> <td>A collection of name=value pairs,
  +                                    one on each line, that specifies
  +                                    the attributes to set on the
  +                                    <code>XADataSource</code>
  +                                    instance. For each pair
  +                                    <code>Name=Value</code>, the
  +                                    method <code>setName(Value)</code>
  +                                    will be called on the
  +                                    <code>XADataSource</code>
  +                                    instance. At the moment it is only
  +                                    possible to set
  +                                    <code>String</code>
  +                                    attributes.<td>
  +          </tr>
  +        </tbody>
  +      </table>
  +    </div>
  +
  +    <div class="para">
  +      Once the <code>XADataSource</code> is set up, we need to add the
  +      <code>ConnectionFactoryLoader</code> MBean that will create the
  +      connection factory from the resource adapter when it is
  +      deployed. We will create a connection factory called
  +      <code>BlackBoxDS</code> that will appear in JNDI at
  +      <code>java:/BlackBoxDS</code>. Below is the MBean definition
  +      that we will use.
  +    </div>
  +
       <div class="code">
  -  &lt;mbean code="org.jboss.jdbc.RawXADataSourceLoader"
  -         name="DefaultDomain:service=RawXADataSourceLoader,name=BlackBoxXADS"&gt;
  -    &lt;attribute name="PoolName"&gt;BlackBoxXADS&lt;/attribute&gt;
  -    &lt;attribute
  -      
name="DataSourceClass"&gt;org.jboss.minerva.xa.XADataSourceImpl&lt;/attribute&gt;
  -    &lt;attribute name="Properties"&gt;
  -      URL=jdbc:HypersonicSQL:hsql://localhost:1476
  -    &lt;/attribute&gt;
  -  &lt;/mbean&gt;
  +&lt;mbean code="org.jboss.resource.ConnectionFactoryLoader"
  +       name="J2EE:service=ConnectionFactoryLoader"&gt;
  +  &lt;attribute name="FactoryName"&gt;BlackBoxDS&lt;/attribute&gt;
  +  &lt;attribute name="RARDeployerName"&gt;J2EE:service=RARDeployer&lt;/attribute&gt;
  +  &lt;attribute name="ResourceAdapterName"&gt;Black Box XA Adapter&lt;/attribute&gt;
  +  &lt;attribute 
name="Properties"&gt;XADataSourceName=java:/BlackBoxXADS&lt;/attribute&gt;
  +
  +  &lt;!-- Principal mapping configuration --&gt;
  +  &lt;attribute 
name="PrincipalMappingClass"&gt;org.jboss.resource.security.ManyToOnePrincipalMapping&lt;/attribute&gt;
  +  &lt;attribute name="PrincipalMappingProperties"&gt;
  +    userName=sa
  +    password=
  +  &lt;/attribute&gt;
  +
  +  &lt;!-- Pool strategy - uncomment to force, otherwise it is automatic
  +  &lt;attribute name="PoolStrategy"&gt;Single&lt;/attribute&gt;
  +  --&gt;
  +
  +  &lt;!-- Connection pooling properties - see
  +       org.jboss.minerva.pools.ObjectPool --&gt;
  +  &lt;attribute name="MinSize"&gt;0&lt;/attribute&gt;
  +  &lt;attribute name="MaxSize"&gt;10&lt;/attribute&gt;
  +  &lt;attribute name="GCMinIdleTime"&gt;1200000&lt;/attribute&gt;
  +  &lt;attribute name="GCEnabled"&gt;false&lt;/attribute&gt;
  +  &lt;attribute name="InvalidateOnError"&gt;false&lt;/attribute&gt;
  +  &lt;attribute name="TimestampUsed"&gt;false&lt;/attribute&gt;
  +  &lt;attribute name="Blocking"&gt;true&lt;/attribute&gt;
  +  &lt;attribute name="GCInterval"&gt;120000&lt;/attribute&gt;
  +  &lt;attribute name="IdleTimeout"&gt;1800000&lt;/attribute&gt;
  +  &lt;attribute name="IdleTimeoutEnabled"&gt;false&lt;/attribute&gt;
  +  &lt;attribute name="LoggingEnabled"&gt;false&lt;/attribute&gt;
  +  &lt;attribute name="MaxIdleTimeoutPercent"&gt;1.0&lt;/attribute&gt;
  +&lt;/mbean&gt;
       </div>
   
  -    <div class="para">TBD - see <code>jboss.jcml</code> for now.</div>
  +    <div class="para">
  +      The general attributes should be self explanatory.
  +    </div>
   
  -    <h2>Implementation Status</h2>
  +    <h2><a name="status">Implementation Status</a></h2>
   
       <div class="para">
         <em>Note that this section is likely to lag the latest
  @@ -220,11 +327,25 @@
   
       <div class="footer">
         Author: <a href="mailto:[EMAIL PROTECTED]">Toby Allsopp</a><br/>
  -      Revision: $Id: jca_config.html,v 1.3 2001/01/16 08:14:49 allsopp Exp $
  +      Revision: $Id: jca_config.html,v 1.4 2001/01/18 07:44:25 allsopp Exp $
       </div>
     </div></body>
   </html>
   <!--  LocalWords:  PRE EE HowTo css JCA JDBC JNDI MBean ConnectionFactoryLoader
  + -->
  +<!--  LocalWords:  TBD URL RAR RAR CVS href foo mbean FactoryName JBoss XA
  + -->
  +<!--  LocalWords:  RARDeployerName ResourceAdapterName DefaultDomain BlackBoxDS
  + -->
  +<!--  LocalWords:  RawXADataSourceLoader BlackBoxXADS DataSourceClass userName
  + -->
  +<!--  LocalWords:  RARDeployer XADataSourceName PrincipalMappingClass MinSize
  + -->
  +<!--  LocalWords:  PrincipalMappingProperties PoolStrategy MaxSize GCEnabled
  + -->
  +<!--  LocalWords:  GCMinIdleTime InvalidateOnError TimestampUsed GCInterval
  + -->
  +<!--  LocalWords:  IdleTimeout IdleTimeoutEnabled LoggingEnabled
    -->
  -<!--  LocalWords:  TBD URL RAR RAR CVS
  +<!--  LocalWords:  MaxIdleTimeoutPercent
    -->
  
  
  

Reply via email to