cancel
Showing results for 
Search instead for 
Did you mean: 

Ecexute config actions on Alfresco startup

sokolko
Champ in-the-making
Champ in-the-making
Hello everyone!
I've faced a simple issue about Alfresco, but I can't solve it for a week already. I need to reload my custom messages file on Alfresco startup using http://localhost:8080/alfresco/faces/jsp/admin/repoadmin-console.jsp with the command reload messages myfile. Does anyone know how this can be done automatically on server start?
1 REPLY 1

sujaypillai
Confirmed Champ
Confirmed Champ
You will need to have a spring bean definition as below -

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN'
   'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
   <bean id="webscripts.resources"  
         class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.web-extension.messages.mysite</value>
         </list>
      </property>
   </bean>
</beans>

Make sure this file has a suffix : -context.xml

Then place your .properties file under - tomcat\shared\classes\alfresco\web-extension\messages folder.

A restart should load your configurations.