0 Replies Latest reply on Mar 19, 2007 1:31 PM by Amit Anand

    jboss database connection pool

    Amit Anand Newbie

      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 .