2 Replies Latest reply on Jun 25, 2010 11:53 AM by Peter Johnson

    How to not use any datasource via JBoss?

    J J Newbie


      I have been trying this, but all the posts / guides I read talk about replacing the hsqlDB-ds.xml with some other *-ds.xml to connect to a database. Is there a way for me to tell JBoss not to handle database connections /pooling?

      I have my own implementation of DB connection/pooling, I want to remove the hsqldb-ds.xml so that JBoss does not start DB services or load the Hypersonic db in memory, but I also don't want to introduce another DB connection ds.xml. Is this possible? What do I need to do?


        • 1. Re: How to not use any datasource via JBoss?
          J J Newbie

          I am using JBoss 5.0.1 default configuration for my deployment.

          • 2. Re: How to not use any datasource via JBoss?
            Peter Johnson Master

            Several JBoss AS services use the DefaultDS data source defined by the hsqldb-ds.xml file. In order to remove that file, you need to replace the DefaultDS datasource with something, which is usually some other data source. One thing you can try is to remove the services that need that data source. This would include messaging and the ejb timer service. Do a text seach for DefaultDS in in all XML file to locate all uses.


            As fas a replacing the connection pooling built into JBoss AS and used by the various AS services, you are on your own.


            On the other hand, if all you want to do is handle your own connection pooling for your own apps, then all you have to do is not define a *-ds.xml file for your database.