Hi everyone!
Does anyone know how to define an application-specific datasource on JBoss 5.1? Meaning: there's a Seam WAR application, let's call it "SecretApp" that uses a datasource, let's say "SecretAppDatasource". I would like that datasource to be available only to the SecretApp. Other applications deployed on that server should not be allowed to fetch and use that datasource.
I would rather not use the application-supplied parameters (such as from getConnection(user, pwd)).
There's a page here http://docs.jboss.org/jbossweb/latest/jndi-datasource-examples-howto.html meant to explain such a case (see heading 2b), but I can't quite figure out how to make it work with the Seam and Hibernate/JPA/JTA. I am using Oracle 10g and the app is running on a cluster, if that matters...
I am really stuck here, so I would really appreciate if someone helped me here!
Thanks!
Jonnie
Ok, apparently, that can not be done on a JBoss AS, since each object can be fetched through the LDAP. The only way to go is to use the application-supplied parameters.
Anyways, it was nice talking to myself.