JBoss Community

Application-specific Datasources?

created by Arsen Torbarina in Datasource Configuration - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community