Trying to externalize Messages, LSDS in TS preview
Using this bean for a messages file (messages_en.properties ans messages_es.properties)
<bean id="messageSourceWrapper" class="com.tms.bat.livesite.runtime.page.MessageSourceWrapper">
<property name="messageSource">
<ref bean="messageSource"/>
</property>
</bean>
<bean id="messageSource"
class="org.springframework.context.support.ResourceBundleMessageSource">
<property name="basenames">
<list>
<value>WEB-INF/conf/livesite_customer/messages</value>
<!--
<value>file:///opt/interwoven/TeamSite/custom/properties/webapps/messages</value>
-->
</list>
</property>
</bean>
When I use the value in the WAR it works, when I try the external path, it does not. This means I need a UI rebuild every time there is a change to the messages file.
I get Key not found in the UI and see this in the logs:
2016-01-28 16:52:18,053 INFO [STDOUT] 16:52:18,053 WARN [ResourceBundleMessageSource] ResourceBundle [file:///opt/interwoven/TeamSite/custom/properties/webapps/messages] not found for MessageSource: Can't find bundle for base name file:///opt/interwoven/TeamSite/custom/properties/webapps/messages, locale en
I also tried file://localhost/opt/..... no luck
What is really strange is that the next bean down works (using the same syntax):
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>file://localhost/opt/interwoven/TeamSite/custom/properties/bat/webapps/external-client.properties</value>
</list>
</property>
</bean>
Both work correctly on the runtimes.
WTF am I missing ?
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax