Hi,

I write an MBean DatabaseStatus that I'd like to manage with my JMX client. I 
wrote the following method:

public List showSlaveStatus(String rootPassword) throws BusinessException;

and I would like to make a mysql-connection to my DB as user root.

What are the steps I have to follow? I suppose it isn't very secure to define a 
datasource with user root and password in the deploy dir...?

  <local-tx-datasource>
    <jndi-name>MySqlDS</jndi-name>
    <connection-url>...</connection-url>
    <driver-class>org.gjt.mm.mysql.Driver</driver-class>
    <user-name>root</user-name>
    rootPassword
  </local-tx-datasource>

But what is a better solution?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874440#3874440

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874440


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to