How to set the CustomSharedStringResources.properties in the classpath in JBoss while Customizing Text Strings of a Set of Properties for Entire Application.

How to set the CustomSharedStringResources.properties in the classpath in JBoss while Customizing Text Strings of a Set of Properties for Entire Application.

book

Article ID: KB0088744

calendar_today

Updated On:

Products Versions
TIBCO MDM -
Not Applicable -

Description

Description:

JBoss AS 7.x makes use of the new JBoss Modules framework. JBoss Modules is a standalone implementation of a modular (non-hierarchical) class loading and execution environment for Java. In other words, rather than a single class loader which loads all JARs into a flat class path, each library becomes a module which only links against the exact modules it depends on, and nothing more. It implements a thread-safe, fast and highly concurrent delegating class loader model, coupled to an extensible module resolution system which combine to form a unique, simple and powerful system for application execution and distribution.

Symptoms:
How to set the CustomSharedStringResources.properties in the classpath for JBoss while Customizing Text Strings of a Set of Properties for Entire Application.
Cause:
JBoss AS 7.x makes use of the new JBoss Modules framework.

Resolution

1). Extract the MDM resource bundle file com/tibco/mdm/properties/mdm/SharedStringResources.properties from ECM.ear/ECMClasses.jar to  $JBOSS_HOME/modules/com/tibco/mdm/main/com/tibco/mdm/properties/mdm/).

2). Rename the extracted resource file, $JBOSS_HOME/modules/com/tibco/mdm/main/com/tibco/mdm/properties/mdm/SharedStringResources.properties to $JBOSS_HOME/modules/com/tibco/mdm/main/com/tibco/mdm/properties/mdm/CustomSharedStringResources_<EnterpriseName>.properties.

3). Remove all properties from CustomSharedStringResources_<EnterpriseName>.properties and keep only the following properties:

REL_NAME__46359__Demo= Demographics

4). Make sure the element <resource-root path="."/> is in the module.xml file located in $JBOSS_HOME/modules/com/tibco/mdm/main - add it if it is not there. This element tells JBOSS to load all elements in all subdirectories under  $JBOSS_HOME/modules/com/tibco/mdm/main.  The file module.xml will now resemble the following:

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jbos:module:1.1" name="com.tibco.mdm">
  <resources>
    <resource-root path="." />
  </resources>
</module>

Also, make sure the following entry is in $JBOSS_HOME/standalone/configuration/standalone.xml :

<subsystem xmlns="urn:jboss:domain:ee:1.0">
  <global-modules>
    <module name="com.tibco.mdm" slot="main" />
  </global-modules>
</subsystem>

5). Restart the application server.

Issue/Introduction

How to set the CustomSharedStringResources.properties in the classpath in JBoss while Customizing Text Strings of a Set of Properties for Entire Application.