java - Add external path to JBoss 4 classpath settings -
i've inherited application runs on jboss 4.2.1.ga deployment cluster. application hybrid of technologies, primary view technologies used struts 1 & struts 2 (they co-exist).
i struggling understand how application built , deployed. app using i18n front end, , uses standard bean:message
tags retrieve translations:
ex:
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> <input type="text" name="searchfilter" id="searchfilterid" value="<bean:message key="ng.searchfor"/>"
additionally, app has bunch of application.properties files (for each translation).
however, when ear built , deployed, application*.properties files not packaged in war/ear. rather stripped , copied external shared folder on server (one nodes in cluster have access). concept, believe, properties can written central location, , loaded/reloaded on fly application.
i don't understand, however, how struts manages load these translation files. understanding, application*.properties files need on application classpath such struts can find them.
the struts-config.xml
file has no additional information:
nor web.xml:
<servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.actionservlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/web-inf/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>chainconfig</param-name> <!-- overide default chain-config.xlm file add chain command in charge of audit trail.--> <param-value>/web-inf/chain-config.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
so conclusion somehow these application.properties file (stored in path external jboss) mapped classpath somehow such classloader can automatically find them.
but can't seem find directive/configuration instruction anywhere.
does jboss 4 have config file allow me add paths classloader? found references using modules in jb 7+, haven't been able find jb4. or there way configure struts load it's application.properties files outside classpath?
Comments
Post a Comment