1 Reply Latest reply on Dec 14, 2001 4:36 PM by davidjencks

    ConnectionFactoryLoader for DefaultDS

    cepage

      Hi there,

      I have read through the JBossCX chapter in the excellent new JBoss Book, but I am still missing a fundamental piece.

      I have defined a default data source in my .jcml file, as follows:


      ...

      As far as I can tell, whenever I ask JNDI for one of these XADataSource objects it goes through the appropriate connection factory. It pools properly, works great in transactions, etc.

      The comments in my .jcml file tell me that I am getting the connection from the following defined connection factory:

      <!-- Connection factory for the Minerva JDBC resource adapter. This
      points at the same database as DefaultDS. -->

      MinervaDS
      JCA:service=RARDeployer
      ...

      But I don't see how the data source and the connection factory are related. My data source never references MinervaDS or ConnectionFactoryLoader, so I don't understand how my request for this data source is getting delegated to this connection factory. I would greatly appreciate an explanation of this.

      Thanks,
      Corby

        • 1. Re: ConnectionFactoryLoader for DefaultDS
          davidjencks

          This is a Persistence... forum question.

          You aren't using anything about jbosscx, connectionfactoryloader, or jca. The chapter on JDBC is relevant.

          If you looked up in jndi MinervaDS you would be using the ConnectionFactoryLoader based DataSource.