0 Replies Latest reply on Jun 19, 2002 12:46 PM by Emmanuel Potvin

    JDBC Connection

    Emmanuel Potvin Newbie

      I have Jboss 3.0, and I want a JDBC-ODBC Connection pool. In the file jboss-service.xml i've added the following mbean :



      <depends optional-attribute-name="ManagedConnectionFactoryName">
      <!--embedded mbean-->


      AccessDS



      <config-property name="ConnectionURL" type="java.lang.String">jdbc:odbc:Film</config-property>
      <config-property name="DriverClass" type="java.lang.String">sun.jdbc.odbc.JdbcOdbcDriver</config-property>
      <!--set these only if you want only default logins, not through JAAS -->
      <config-property name="UserName" type="java.lang.String"></config-property>
      <config-property name="Password" type="java.lang.String"></config-property>




      <!--Below here are advanced properties -->
      <!--hack-->
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper



      <depends optional-attribute-name="ManagedConnectionPool">
      <!--embedded mbean-->


      0
      50
      5000
      15
      <!--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)-->
      ByContainer



      <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager

      <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager

      java:/TransactionManager

      <!--make the rar deploy! hack till better deployment-->
      jboss.jca:service=RARDeployer



      But nothing works. In the log, I have many of the following line :

      2002-06-19 11:50:07,907 DEBUG [org.jboss.system.ServiceController] waiting in start jboss.jca:service=LocalTxCM,name=AccessDS on jboss.jca:service=LocalTxPool,name=AccessDS


      Why?