[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-16 Thread diripu
Could anyone help me in this JCAStats ?? Its urgent. Thanks in advance. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3855308#3855308 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855308

[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-16 Thread [EMAIL PROTECTED]
If you look into the code (org.jboss.management.j2ee.JCAResource) you'll see there is no chance to get anything else than a single array entry: | ObjectName jsr77CFName = getConnectionFactory(0); | Object[] params = {poolServiceName}; | String[] sig =

[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-14 Thread diripu
Thanks. jboss.management.local:J2EEServer=Local,ResourceAdapter=JMS Adapter,j2eeType=JCAResource,name=JmsXA In the above connection pool MBean JmsXA, there is attribute called stats of type JCAStats. In which there are two methods called getConnections() and getConnectionPoolStats() and

[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-11 Thread diripu
What is the difference between the follwing MBeans ? Does JmsXA is the connectionpool name? jboss.jca:name=JmsXA,service=ManagedConnectionPool jboss.management.local:J2EEServer=Local,ResourceAdapter=JMS Adapter,j2eeType=JCAResource,name=JmsXA View the original post :

[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-11 Thread [EMAIL PROTECTED]
MBeans in the jboss.management.local domain are JSR77 compliant proxy objects, modelling in a standard way some management aspect of the server. So, for example, if you deploy an .ear or a .rar you'll see a number of them being created. View the original post :

[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-04 Thread [EMAIL PROTECTED]
If your MBean naming is consistent, you don't need to include a QueryExp in the call to QueryNames (just pass null as a second argument). QueryExp really refers to the actual attribute values of MBeans Then use a appropriate ObjectName pattern, eg: jboss.jca:service=ManagedConnectionPool,*

[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-04 Thread bbalmer
Thanks for your quick reply. I changed my code to: ObjectName scope = new ObjectName(jboss.jca:service=ManagedConnectionPool,*); QueryExp exp = Query.initialSubString(Query.attr(Name), null); Set set = server.queryNames(scope, exp); log.info(Found + set.size() + pools); Iterator it =

[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-04 Thread [EMAIL PROTECTED]
You do NOT need the QueryExp: | ObjectName scope = new ObjectName(jboss.jca:service=ManagedConnectionPool,*); | | Set set = server.queryNames(scope, null); | log.info(Found + set.size() + pools); | | Iterator it = set.iterator(); | | while(it.hasNext()) |

[JBoss-user] [Management, JMX/JBoss] - Re: Retrieve listing of connection pools

2004-11-04 Thread bbalmer
Sorry for the misunderstanding. This works exactly as I had hoped. Thank you for your help. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3853941#3853941 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3853941