In the config file jboss.jcml, I configure a database pool for Oracle, I
give the Poolname, driver, url, username, password. I start the JBoss,
everything is fine. Now the problem is I try to get the DataSource from
this registered pool, then I can get the connection from the DataSource.
(In a regular Java class, not in the EJB )
May I use following code to do this?
InitialContext iniCtx = new InitialContext();
DataSource ds = iniCtx.lookup( poolName );
Thanks.
Flora Ding
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user