9 Replies Latest reply on Nov 16, 2004 5:57 AM by Dimitris Andreadis

    Retrieve listing of connection pools

    Brad Balmer Newbie

      I am having trouble dynamically finding all of the different connection pools that I have set up. To get connection information I currently have each pool name hard-coded. I would like to do a query to get all of the different pools but my query ALWAYS returns no value.

      Here is a snipit of how I am querying:

      ObjectName scope = new ObjectName("jboss.jca:service=ManagedConnectionPool");

      QueryExp exp = Query.initialSubString(Query.attr("Name"), Query.value("jdbc"));

      Set set = server.queryNames(scope, exp);

      My set size is always empty.

      Currently I fully name the ObjectName with:
      jboss.jca:service=ManagedConnectionPool,name=jdbc/central

      I am able to get all information on the pool.

      Any help with querying would be GREATLY appreciated.

      Thanks.