Edmon, 
 
Did you get an answer to your question?
 
I found your question quite interesting. I ran some tests and received the same 
error (RMI permission) as you. I used JConsole as well as looked at JMXProxy 
and could not determine if my datasource (in this case MySQL) was running or 
not. The informatio available via JMX was the same whether MySQL was started or 
not. 
 
I am wondering if creating your own MBean is the appropriate way to test the 
connection.   
 
Let me know how this comes out. 
 
- Andy Gordon

Edmon Begoli <[EMAIL PROTECTED]> wrote:
Is there a handy MBean in Tomcat that would allow me to do on demand check
if the connection to the database is up?

I've looked at DataSource but that one does not expose getConnection, and
the one that requires username and password throws RMI permission exception.
I would really like to have something simple as "can connect" or similar.

--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software

                
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Reply via email to