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.
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.