User: d_jencks
  Date: 02/04/08 08:37:55

  Modified:    src/etc/example-config firebird-service.xml
                        postgres-service.xml
  Added:       src/etc/example-config hsqldb-service.xml mysql-service.xml
                        oracle-service.xml
  Log:
  Added more new-cm config examples.  Make sure mbean name in auth.conf EXACTLY 
matches cm mbean name in service.xml
  
  Revision  Changes    Path
  1.2       +5 -5      jbosscx/src/etc/example-config/firebird-service.xml
  
  Index: firebird-service.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbosscx/src/etc/example-config/firebird-service.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- firebird-service.xml      7 Apr 2002 03:35:10 -0000       1.1
  +++ firebird-service.xml      8 Apr 2002 15:37:54 -0000       1.2
  @@ -18,12 +18,12 @@
       <attribute name="DropOnStop">false</attribute>
     </mbean>
   
  -  <mbean code="org.jboss.resource.connectionmanager.XATxConnectionManager" 
name="jboss.jca:service=firebirdCM">
  +  <mbean code="org.jboss.resource.connectionmanager.XATxConnectionManager" 
name="jboss.jca:service=XaTxCM,name=FirebirdDS">
       <!--make the rar deploy - A BIG HACK till xslt based deployment is written-->
       <depends>jboss.jca:service=RARDeployer</depends>
   
       <depends optional-attribute-name="ManagedConnectionFactoryName">
  -      <mbean code="org.jboss.resource.connectionmanager.RARDeployment" 
name="jboss.jca:service=FirebirdDS">
  +      <mbean code="org.jboss.resource.connectionmanager.RARDeployment" 
name="jboss.jca:service=XaTxDS,name=FirebirdDS">
           <!--more hack-->
           <depends 
optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Firebird
 Database Connector</depends>
           <attribute name="ManagedConnectionFactoryProperties">
  @@ -55,12 +55,12 @@
               </config-property>
             </properties>
           </attribute>
  -        <attribute name="JndiName">DefaultDS2</attribute>
  +        <attribute name="JndiName">FirebirdDS</attribute>
         </mbean>
   
       </depends>
       <depends optional-attribute-name="ManagedConnectionPool">
  -      <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
name="jboss.jca:service=FirebirdPool">
  +      <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
name="jboss.jca:service=XaTxPool,name=FirebirdDS">
   
           <attribute name="MinSize">0</attribute>
           <attribute name="MaxSize">50</attribute>
  @@ -78,7 +78,7 @@
         </mbean>
       </depends>
       <depends 
optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
  -    <attribute name="SecurityDomainJndiName">java:/jaas/firebirdRealm</attribute>
  +    <attribute name="SecurityDomainJndiName">java:/jaas/FirebirdDBRealm</attribute>
   
       <attribute name="TransactionManager">java:/TransactionManager</attribute>
     </mbean>
  
  
  
  1.2       +6 -5      jbosscx/src/etc/example-config/postgres-service.xml
  
  Index: postgres-service.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jbosscx/src/etc/example-config/postgres-service.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- postgres-service.xml      7 Apr 2002 03:35:10 -0000       1.1
  +++ postgres-service.xml      8 Apr 2002 15:37:55 -0000       1.2
  @@ -13,14 +13,14 @@
     <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
     <!-- ==================================================================== -->
   
  -  <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
name="jboss.jca:service=LocalTxCM">
  +  <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
name="jboss.jca:service=LocalTxCM,name=PostgresDS">
       <!--make the rar deploy! hack till better deployment-->
       <depends>jboss.jca:service=RARDeployer</depends>
   
   
       <depends optional-attribute-name="ManagedConnectionFactoryName">
         <!--embedded mbean-->
  -      <mbean code="org.jboss.resource.connectionmanager.RARDeployment" 
name="jboss.jca:service=LocalTxDS">
  +      <mbean code="org.jboss.resource.connectionmanager.RARDeployment" 
name="jboss.jca:service=LocalTxDS,name=PostgresDS">
           <!--hack-->
           <depends 
optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Minerva
 JDBC LocalTransaction ResourceAdapter</depends>
   
  @@ -50,12 +50,13 @@
             </properties>
   
           </attribute>
  -        <attribute name="JndiName">DefaultDS</attribute>
  +        <attribute name="JndiName">PostgresDS</attribute>
         </mbean>
  +    </depends>
   
       <depends optional-attribute-name="ManagedConnectionPool">
         <!--embedded mbean-->
  -      <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
name="jboss.jca:service=LocalTxPool">
  +      <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
name="jboss.jca:service=LocalTxPool,name=PostgresDS">
   
           <attribute name="MinSize">0</attribute>
           <attribute name="MaxSize">50</attribute>
  @@ -74,7 +75,7 @@
   
       </depends>
       <depends 
optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
  -    <attribute name="SecurityDomainJndiName">java:/jaas/DefaultDbRealm</attribute>
  +    <attribute name="SecurityDomainJndiName">java:/jaas/PostgresDbRealm</attribute>
       <attribute name="TransactionManager">java:/TransactionManager</attribute>
     </mbean>
   
  
  
  
  1.1                  jbosscx/src/etc/example-config/hsqldb-service.xml
  
  Index: hsqldb-service.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- ===================================================================== -->
  <!--                                                                       -->
  <!--  JBoss Server Configuration                                           -->
  <!--                                                                       -->
  <!-- ===================================================================== -->
  
  <!-- $Id: hsqldb-service.xml,v 1.1 2002/04/08 15:37:55 d_jencks Exp $ -->
  
  <server>
  
    <!-- ==================================================================== -->
    <!-- New ConnectionManager setup for default hsql dbs                     -->
    <!-- ==================================================================== -->
  
    <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
name="jboss.jca:service=LocalTxCM,name=MySqlDS">
      <!--make the rar deploy! hack till better deployment-->
      <depends>jboss.jca:service=RARDeployer</depends>
  
  
      <depends optional-attribute-name="ManagedConnectionFactoryName">
        <!--embedded mbean-->
        <mbean code="org.jboss.resource.connectionmanager.RARDeployment" 
name="jboss.jca:service=LocalTxDS,name=MySqlDS">
          <!--hack-->
          <depends 
optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Minerva
 JDBC LocalTransaction ResourceAdapter</depends>
          <depends>jboss:service=Hypersonic</depends>
  
          <!--real attributes-->
          <attribute name="ManagedConnectionFactoryProperties">
            <properties>
              <config-property>
                <config-property-name>ConnectionURL</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                
<config-property-value>jdbc:hsqldb:hsql://localhost:1476</config-property-value>
              </config-property>
              <config-property>
                <config-property-name>DriverClass</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value>org.hsqldb.jdbcDriver</config-property-value>
              </config-property>
              <config-property>
                <config-property-name>UserName</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value></config-property-value>
              </config-property>
              <config-property>
                <config-property-name>Password</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value></config-property-value>
              </config-property>
            </properties>
          </attribute>
          <attribute name="JndiName">DefaultDS</attribute>
        </mbean>
      </depends>
      <depends optional-attribute-name="ManagedConnectionPool">
        <!--embedded mbean-->
        <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
name="jboss.jca:service=LocalTxPool,name=MySqlDS">
  
          <attribute name="MinSize">0</attribute>
          <attribute name="MaxSize">50</attribute>
          <attribute name="BlockingTimeoutMillis">5000</attribute>
          <attribute name="IdleTimeoutMinutes">15</attribute>
          <!--criteria indicates if Subject (from security domain) or app supplied
              parameters (such as from getConnection(user, pw)) are used to distinguish
              connections in the pool. Choices are 
              ByContainerAndApplication (use both), 
              ByContainer (use Subject),
              ByApplication (use app supplied params only),
              ByNothing (all connections are equivalent, usually if adapter supports
                reauthentication)-->
          <attribute name="Criteria">ByContainer</attribute>
        </mbean>
      </depends>
      <depends 
optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
      <attribute name="SecurityDomainJndiName">java:/jaas/HsqlDbRealm</attribute>
      <attribute name="TransactionManager">java:/TransactionManager</attribute>
    </mbean>
  
  
    <!-- Moved to end to test anonymous depends -->
  
    <mbean code="org.jboss.jdbc.HypersonicDatabase" 
         name="jboss:service=Hypersonic">
      <attribute name="Port">1476</attribute>
      <attribute name="Silent">true</attribute>
      <attribute name="Database">default</attribute>
      <attribute name="Trace">false</attribute>
    </mbean>
  
  </server>
  
  
  
  1.1                  jbosscx/src/etc/example-config/mysql-service.xml
  
  Index: mysql-service.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- ===================================================================== -->
  <!--                                                                       -->
  <!--  JBoss Server Configuration                                           -->
  <!--                                                                       -->
  <!-- ===================================================================== -->
  
  <server>
  
    <!-- ==================================================================== -->
    <!-- New ConnectionManager setup for mysql using 2.0.11 driver            -->
    <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
    <!-- ==================================================================== -->
  
    <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
name="jboss.jca:service=LocalTxCM,name=MySqlDS">
      <!--make the rar deploy! hack till better deployment-->
      <depends>jboss.jca:service=RARDeployer</depends>
  
  
      <depends optional-attribute-name="ManagedConnectionFactoryName">
        <!--embedded mbean-->
        <mbean code="org.jboss.resource.connectionmanager.RARDeployment" 
name="jboss.jca:service=LocalTxDS,name=MySqlDS">
          <!--hack-->
          <depends 
optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Minerva
 JDBC LocalTransaction ResourceAdapter</depends>
  
          <!--real attributes-->
          <attribute name="ManagedConnectionFactoryProperties">
            <properties>
              <config-property>
                <config-property-name>ConnectionURL</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                
<config-property-value>jdbc:mysql://dell:/jbossdb</config-property-value>
              </config-property>
              <config-property>
                <config-property-name>DriverClass</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value>org.gjt.mm.mysql.Driver</config-property-value>
              </config-property>
              <config-property>
                <config-property-name>UserName</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value></config-property-value>
              </config-property>
              <config-property>
                <config-property-name>Password</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value></config-property-value>
              </config-property>
            </properties>
  
          </attribute>
          <attribute name="JndiName">DefaultDS</attribute>
        </mbean>
      </depends>
  
      <depends optional-attribute-name="ManagedConnectionPool">
        <!--embedded mbean-->
        <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
name="jboss.jca:service=LocalTxPool,name=MySqlDS">
  
          <attribute name="MinSize">0</attribute>
          <attribute name="MaxSize">50</attribute>
          <attribute name="BlockingTimeoutMillis">5000</attribute>
          <attribute name="IdleTimeoutMinutes">15</attribute>
          <!--criteria indicates if Subject (from security domain) or app supplied
              parameters (such as from getConnection(user, pw)) are used to distinguish
              connections in the pool. Choices are 
              ByContainerAndApplication (use both), 
              ByContainer (use Subject),
              ByApplication (use app supplied params only),
              ByNothing (all connections are equivalent, usually if adapter supports
                reauthentication)-->
          <attribute name="Criteria">ByContainer</attribute>
        </mbean>
  
      </depends>
      <depends 
optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
      <attribute name="SecurityDomainJndiName">java:/jaas/MySqlDbRealm</attribute>
      <attribute name="TransactionManager">java:/TransactionManager</attribute>
    </mbean>
  
  
  </server>
  
  
  
  1.1                  jbosscx/src/etc/example-config/oracle-service.xml
  
  Index: oracle-service.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
  <!-- ===================================================================== -->
  <!--                                                                       -->
  <!--  JBoss Server Configuration                                           -->
  <!--                                                                       -->
  <!-- ===================================================================== -->
  
  <server>
  
    <!-- ==================================================================== -->
    <!-- ConnectionManager setup for Oracle dbs                               -->
    <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
    <!-- Thanks to Steven Coy                                                 -->
    <!-- ==================================================================== -->
  
    <mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
name="jboss.jca:service=LocalTxCM,name=OracleDS">
      <!--make the rar deploy! hack till better deployment-->
      <depends>jboss.jca:service=RARDeployer</depends>
  
  
      <depends optional-attribute-name="ManagedConnectionFactoryName">
        <!--embedded mbean-->
        <mbean code="org.jboss.resource.connectionmanager.RARDeployment" 
name="jboss.jca:service=LocalTxDS,name=OracleDS">
          <!--hack-->
          <depends 
optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Minerva
 JDBC LocalTransaction ResourceAdapter</depends>
  
          <!--real attributes-->
          <attribute name="ManagedConnectionFactoryProperties">
            <properties>
              <config-property>
                <config-property-name>ConnectionURL</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                
<config-property-value>jdbc:oracle:thin:@youroraclehost:1521:yoursid</config-property-value>
              </config-property>
              <config-property>
                <config-property-name>DriverClass</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                
<config-property-value>oracle.jdbc.driver.OracleDriver</config-property-value>
              </config-property>
              <!--It is recommended that you use the JAAS security facilities
                  instead of exposing your security info here-->
              <config-property>
                <config-property-name>UserName</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value>youroracleusername</config-property-value>
              </config-property>
              <config-property>
                <config-property-name>Password</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value>youroraclepassword</config-property-value>
              </config-property>
            </properties>
  
          </attribute>
          <attribute name="JndiName">OracleDS</attribute>
        </mbean>
      </depends>
  
      <depends optional-attribute-name="ManagedConnectionPool">
        <!--embedded mbean-->
        <mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
name="jboss.jca:service=LocalTxPool,name=OracleDS">
  
          <attribute name="MinSize">0</attribute>
          <attribute name="MaxSize">50</attribute>
          <attribute name="BlockingTimeoutMillis">5000</attribute>
          <attribute name="IdleTimeoutMinutes">15</attribute>
          <!--criteria indicates if Subject (from security domain) or app supplied
              parameters (such as from getConnection(user, pw)) are used to distinguish
              connections in the pool. Choices are 
              ByContainerAndApplication (use both), 
              ByContainer (use Subject),
              ByApplication (use app supplied params only),
              ByNothing (all connections are equivalent, usually if adapter supports
                reauthentication)-->
          <attribute name="Criteria">ByContainer</attribute>
        </mbean>
  
      </depends>
      <depends 
optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
     
      <!--Be sure to set up an OracleDbRealm (similar to DefaultDbRealm)
        in the auth.conf file if you want to use container managed security -->
      <!--comment out this line if you want component managed security or want
          to use the default values in the ManagedConnectionFactoryProperties -->
      <attribute name="SecurityDomainJndiName">java:/jaas/OracleDbRealm</attribute>
  
      <attribute name="TransactionManager">java:/TransactionManager</attribute>
   
    </mbean>
  
  
  </server>
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to