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 ?
Comments
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.