I am looking for a way to setup application scoped datasources within JBoss (4.2.3 or 5).
I have a situation where we have multiple home grown applications on a single JBoss install. Each application uses a datasource that may point do a separate server or the same server with different database permissions.
Would would be nice, is to package a datasource-ds.xml in each ear and have it only scoped to that application, and not registerd on the global jndi tree.
I have found this concept in other java app servers. Weblogic for example, uses something called the JDBC Module, where you have an *-jdbc.xml file that you place inside the ear make a small change to the weblogic-application.xml file and the datasource is now only limited to that one application.