1 Reply Latest reply on Jan 28, 2005 2:47 PM by Adrian Brock

    Binding a local-tx-datasource to a custom ManagedConnectionF

    Richard Bordoli Newbie

      I have create my.rar containing MyManagedConnectionFactory (which extends BaseWrapperManagedConnectionFactory) so that I can store encrypted passwords in my *-ds.xml files (I read the post about putting passwords in login-config.xml but did not like the idea of having to update 2 files when I change my datasource definition). my.rar deploys fine and I can add a depends in *-ds.xml but it appears the XSL transformation hard codes a dependency on jboss-local-jdbc.rar because I get this:

      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment
      state: NOTYETINSTALLED
      I Depend On:
      Depends On Me: jboss.jca:name=jdbc/evoDS,service=ManagedConnectionFactory
      ...

      (Note: I deleted jboss-local-jdbc.rar)

      If I rename my.rar to jboss-local-jdbc.rar then everything works fine but I would ideally like to:
      1) Not delete jboss-local-jdbc.rar
      2) Have whatever name I like for my.rar
      3) use the nice simple *-ds.xml format
      4) Bind my *-ds.xml files to my own rar

      Is there a way to achieve this, i.e. make my *-ds.xml use my own rar instead of not the default Jboss one (jboss-local-jdbc.rar) ?

      Any help much appreciated!

      -Richard Bordoli