-
1. Re: HSQLDB: Usage of hardcoded DB user/password at JBOSS shu
f_kasper Jan 23, 2004 11:06 AM (in response to janssenuwe)Got the same problem. Anyone have a solution? or should i rewrite the mbean to take the password as parameter?
-
2. Re: HSQLDB: Usage of hardcoded DB user/password at JBOSS shu
f_kasper Jan 26, 2004 6:48 AM (in response to janssenuwe)Now i have recompiled the HypersonicDatabase with the folowing changes:
i declare 2 global variables:
String user = "sa";
String password = "";
getter and setter function for them:
/**
* Important. remember this javadoc, or else the code will not be used in the MBean interface
* @jmx:managed-attribute
*/
public String getUser(){ return user;}
/**
* @jmx:managed-attribute
*/
public void setUser(final String name) { this.user=name;}
//public String getPassword(){ return this.user;}
/**
* @jmx:managed-attribute
*/
public void setPassword(final String pass) { this.password=pass;}
and removed the local variabels in the function stopService()
user
password
now I can stop the db without a stacktrace and. also change user, password in startDatabaseManager if u use this
/Kasper