3 Replies Latest reply on Aug 10, 2002 1:29 PM by davidjencks

    How to Bind JCA ConnectionFactory

    y_bhakta

      Where to specify the JNDI-name for ConnectionFactory for a Resource Adapter.

      In the code I have to lookup for that JNDI-name to get ConnectionFactory.

      Thanks
      Bhakta

        • 1. Re: How to Bind JCA ConnectionFactory
          stevewink

          In your ???-service.xml file, under the xml for configuring the RARDeployment mbean, you need an attribute like this:

          OracleDS

          which tells the RARDeployment mbean what to put into JNDI for your service. This works for me on 3.0.1.

          • 2. Re: How to Bind JCA ConnectionFactory
            y_bhakta

            This Jndi-name is for DataSource not for ConnectionFactory of Resource Adapter.

            Thanks
            Bhakta

            • 3. Re: How to Bind JCA ConnectionFactory
              davidjencks

              Steve is correct, you are wrong. Whatever is supplied from mcf.createConnectionFactory is bound under the jndi name supplied. With a cci adapter, it will be a cci cf. With a jdbc adapter or jdbc driver wrapper, it will be a jdbc DataSource. With a custom adapter, it could be any object that implements Referenceable.

              Note in 3.2 and later the jndi name is an attribute of the ConnectionManager mbean, not the RARDeployment.