[jboss-user] [Datasource Configuration] - Re: one data source with multiple Oracle database users

Nicolas Davyt do-not-reply at jboss.com
Fri Dec 3 09:17:40 EST 2010

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

Start a new discussion in Datasource Configuration at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101203/aa709444/attachment.html 

More information about the jboss-user mailing list