Now when the virt server starts up, it registers

its JMXServiceURL with the Alfresco webapp's 
 devoted MBeanServer using password protection.

 Also, the virt server now re-register its JMXServiceURL with 
 Alfresco webapp periodically (every 10 sec) to avoid restart 
 depenencies between the webapp and its virt server.

 The webapp is now has a stub interface for calling the
 virt server back & telling it which webapps need 
 reloading / unloading.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4481 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jon Cox
2006-12-01 02:20:42 +00:00
parent 7ff8eaef28
commit e932d2ec41

View File

@@ -65,13 +65,33 @@
</bean> </bean>
<!-- MBeans registered with alfrescoMBeanServer --> <!-- MBeans registered with alfrescoMBeanServer -->
<bean id="VirtServerRegistry" class="org.alfresco.mbeans.VirtServerRegistry"> <bean id="VirtServerRegistry"
<property name="moo" value="1"/> class="org.alfresco.mbeans.VirtServerRegistry"
init-method="initialize" >
<!-- Authentication info to contact remote virtualization server -->
<!-- NOTE: -->
<!-- On the machine hosting the virtualization server, -->
<!-- $VIRTUAL_TOMCAT_HOME/conf/alfresco-jmxrmi.password and -->
<!-- $VIRTUAL_TOMCAT_HOME/conf/alfresco-jmxrmi.access -->
<!-- should have the same data as the corresponding files -->
<!-- contained here within the Alfresco webapp server. -->
<!-- By default, they do; however, if you change the password -->
<!-- file on one server, be sure to change it on the other. -->
<!-- -->
<!-- WARNING: -->
<!-- For security, be certain that *only* the uid under which -->
<!-- the servers run have read access to the password files -->
<!-- (e.g.: under Unix, chmod them to "400"). -->
<property name="passwordFile"
value="${alfresco.jmx.dir}/alfresco-jmxrmi.password"/>
<property name="accessFile"
value="${alfresco.jmx.dir}/alfresco-jmxrmi.access"/>
</bean> </bean>
<!-- Datasource bean --> <!-- Datasource bean -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName"> <property name="driverClassName">