[jboss-user] [JBoss jBPM] - jboss database connection pool
amit127
do-not-reply at jboss.com
Mon Mar 19 13:31:46 EDT 2007
Hi
I am porting my application from weblogic to jboss4.0.2
I our code ejb reads the connection pool properties code is below
weblogic.jdbc.common.JdbcServices jdbc = (weblogic.jdbc.common.JdbcServices)ctx.lookup("weblogic.jdbc.JdbcServices");
Properties p = jdbc.getPool("ConnectionPoolName").getProperties();
StringTokenizer token = new StringTokenizer(p.getProperty("props"),"=;");
token.nextToken();
String user = token.nextToken();
token.nextToken();
String password = token.nextToken();
emLog("user : " + user + " password : " + password + " url : " + p.getProperty("url") + "driver" + p.getProperty("driver"));
Can i do the same thing in jboss AS 4.0.2 do we have api for that .
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029408#4029408
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029408
More information about the jboss-user
mailing list