1 Reply Latest reply on Aug 8, 2002 12:03 PM by davidjencks

    Creating a XADataSource on the fly and binding to initial co

    rixc

      Hi all,

      I know the subject might sound a bit strange but that is what I am trying to achieve. (or something similar).

      Basically I my name is the equivalent of declaring the datasources in the jcml file but on the fly.

      Is this possible? Any pointers are welcome.

      Ricardo.

      I am using Jboss 2.4.6

        • 1. Re: Creating a XADataSource on the fly and binding to initia
          davidjencks

          This is possible but not extremely easy. There is an example of something similar for jboss 3 in the testsuite, in jca/test/DeployConnectionManagerUnitTestCase.java. The 2.4 code should be rather simpler since you only have to deal with one (XADataSourceLoader) mbean, not 3.

          In JBoss 3, you can also deploy new datasources by deploying a *-ds.xml (jboss 3.2, cvs) or *-service.xml (3.0, 3.0.1) file. This is somewhat easier.