2 Replies Latest reply on Oct 18, 2001 1:05 AM by davidjencks

    Programmatically add data source object

    yahendram

      Is there any way to add the data source programmatically in JBoss? Assumes that the database provider could dynamically create database.

        • 1. Re: Programmatically add data source object

          My best Guess is that there must be some way to get access to the The MBEan Continer and add it.

          I assume you at leas know the jdbc driver that will be required, right?

          You can use the console on localhost:8082 to add one via a web intercface. I assume there is a RMI interface as well.

          • 2. Re: Programmatically add data source object
            davidjencks

            There's an example for jboss 3 in one of the jmx test cases. It is equally possible for jboss 2.4, but most of the details are different. Some of the test cases for 2.4 I think show how to use the mbeanserver, both remotely and in-vm.