1 Reply Latest reply on Jun 3, 2003 8:16 PM by exitsfunnel

    Deployment Consfustion

    exitsfunnel Newbie

      Hello,

      I'm in the process of deploying my custom resource adapter but I'm a bit confused on one point. I"ve written a file named adm-ds.xml using one of the examples as a base. The file has this general structure:

      <connection-factories>
      <local-tx-datasource>
      <jndi-name>ADMCtrCF</jndi-name>

      LOTS MORE STUFF

      </local-tx-datasource>
      </connection-factories>

      I've inserted this file along with my resource adapter - adm.rar - in the deploy directory. There are no complaints from the JBOSS deployer when I start the server. However when I try to get a connection factory from a servlet I end up getting a ClassCastException because what's bound to the java:/ADMCtrCF jndi name is an instance of org.jboss.resource.adapter.jdbc.WrapperDataSource and not an instance of the appropriate implementation class from my Resource Adapter. I'm not surprised by this becasue there is nothing in adm-ds.xml which ties it to my Resource Adapter. My question then after this long-winded description is: What does the JBOSS deployer use to tie a given *-ds.xml file to a specific Resource Adapter Deployment? Thanks in advance to anyone who can shed some light on this.

      -exits