3 Replies Latest reply on May 24, 2004 7:58 AM by ozeigermann

    Missing link between rar and -ds.xml file

    ozeigermann Newbie

      I have created a rar which seems to deploy alright (as displayed by the jmx-console). I have also created a -ds.xml file to declare my connection factory. My problem is I have no idea how to link one with the other. And how to have the JNDI name ready for my application.

      This is how my ra.xml looks like

      <?xml version="1.0" encoding="UTF-8"?>
      
      <!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN' 'http://java.sun.com/dtd/connector_1_0.dtd'>
      
      <connector>
       <display-name>Map Example</display-name>
       <vendor-name>Olli</vendor-name>
       <spec-version>1.0</spec-version>
       <eis-type>Map</eis-type>
       <version>1.0</version>
       <resourceadapter>
       <managedconnectionfactory-class>transaction.jca.MapManagedConnectionFactory</managedconnectionfactory-class>
       <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
       <connectionfactory-impl-class>transaction.jca.MapConnectionFactory</connectionfactory-impl-class>
       <connection-interface>javax.resource.cci.Connection</connection-interface>
       <connection-impl-class>transaction.jca.MapConnection</connection-impl-class>
       <transaction-support>XATransaction</transaction-support>
      
       <reauthentication-support>false</reauthentication-support>
      
       </resourceadapter>
      </connector>
      



      and here is my -ds.xml file

      <?xml version="1.0" encoding="UTF-8"?>
      
      <connection-factories>
      
       <tx-connection-factory>
       <jndi-name>Map</jndi-name>
       <xa-transaction/>
       <adapter-display-name>Map Adapter</adapter-display-name>
       </tx-connection-factory>
      
      
      </connection-factories>