Nicolas Davyt [
http://community.jboss.org/people/nicolasdavyt1234] created the discussion
"Re: one data source with multiple Oracle database users"
To view the discussion, visit:
http://community.jboss.org/message/574275#574275
--------------------------------------------------------------
When you lookup of JNDI change
Connection con = null;
DataSource ds = null;
....
InitialContext iniCtx = new InitialContext();
If you want user +*Too*+ Uses:
ds = (DataSource) iniCtx.lookup("*TooWsDataSource*");
...
if you want user +*Too2*+ Uses:
ds = (DataSource) iniCtx.lookup("*TooWsDataSourcePt*");
....
con = ds.getConnection();
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/574275#574275]
Start a new discussion in Datasource Configuration at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]