cancel
Showing results for 
Search instead for 
Did you mean: 

Override alfresco.jmx.dir

loftux
Star Contributor
Star Contributor
I've tried to do an override on alfresco.jmx.dir in order to put password files out of tomcat/webapps/alfresco that gets overwritten whenever you have to deploy something new

So I have tried, in JAVA_OPTS with
-Dalfresco.jmx.dir=/opt/alfresco/tomcat/shared/classes
and in alfresco-global.properties with
alfresco.jmx.dir=/opt/alfresco/tomcat/shared/classes

None of the options above seem to pick up the changes. Still points to the default in /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco
I've tried this with 3.4.a.

Is there another way of doing this?
I think this is important to resolve, probably to many instances out there running with default password for jmx.
3 REPLIES 3

calle
Champ in-the-making
Champ in-the-making
I have also tried various ways of overriding the default jmx configuration files without success. Anyone knows how it works?
//Carl

supalucas
Champ in-the-making
Champ in-the-making
Unfortunately, you can't.

Although it looks like a property value, it's not. And it is hard-coded in the code.

The reason is that this value must be set within spring and must be computed in advance for org.springframework.beans.factory.config.PropertyPlaceholderConfigurer to work properly.

janguela
Champ in-the-making
Champ in-the-making
Hello,

the only way that we could make it work was :

1) Place your new config files under :
# $TOMCAT_HOME/shared/classes/alfresco/alfresco-jmxrmi.access
# $TOMCAT_HOME/shared/classes/alfresco/alfresco-jmxrmi.password

2) Rename the default config files :
# $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/alfresco-jmxrmi.access.default
# $TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/alfresco-jmxrmi.password.default

There is obviously a bug here because the default config files take precedent over the ones placed in the /shared folder

Regards,
Jordi