[jboss-user] [Management, JMX/JBoss] - Re: Listing all datasources available

2006-12-21 Thread pablojavierpy
Hi Andrea. Thanks a lot for the extremely quick response. It is exactly what I am looking for. But I'd need a Servlet accesible API to do the same thing, so I can list all datasources in a WebPage. I will have to see the source code for twiddle utility and I can extract some ideas from it.

[jboss-user] [Management, JMX/JBoss] - Re: Listing all datasources available

2006-12-21 Thread formica
./twiddle.sh query jboss.jca:service=DataSourceBinding,* can this help ? Andrea View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3995667#3995667 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3995667

[jboss-user] [Management, JMX/JBoss] - Re: Listing all datasources available

2006-12-21 Thread PeterJ
Use the JMX api. Here is an example that would work in a servlet: Context ctx = new InitialContext(); | MBeanServerConnection mconn = (MBeanServerConnection)ctx.lookup(jmx/invoker/RMIAdaptor); | ObjectName name = new ObjectName(jboss.jca:service=DataSourceBinding,*); | Set s =

[jboss-user] [Management, JMX/JBoss] - Re: Listing all datasources available

2006-12-21 Thread pablojavierpy
Thank you very, very much. It is exactly what I am needing! :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3995740#3995740 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3995740