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.
./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
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 =
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