Preparing the localizable-text package for deployment

 

Preparing the localizable-text package for deployment

Write code to compose the language-specific strings.

The LocalizableTextEJBDeploy tool is used to create a deployment Java Archive (JAR) file for the localizable text service. You must deploy the enterprise bean in each enterprise application that requires support for localized text.

  1. Verify that the LocalizableTextEJBDeploy tool (ltext.jar ) exists in the lib directory under the installation root directory for the product.

  2. Set up a working directory for the LocalizableTextEJBDeploy tool to use. You need to pass this location to the tool through a command-line interface.

  3. Run the LocalizableTextEJBDeploy tool. You might be asked if you want to regenerate deployment code for the LocalizableText bean. Do not redeploy the bean; if you do, an incorrect Java Naming and Directory Interface (JNDI) name will be generated.

    To deploy the bean on multiple hosts and servers, run the tool for each host and server combination. This action generates a unique JNDI name for each deployment. After the tool is run, a deployment JAR file is located in the working directory that you specified.

 

What to do next

Using an assembly tool, assemble the deployment JAR file in an enterprise application with other application components. As part of preparing for deployment, perform the following:

The same deployment JAR file can be included in several enterprise applications.


Sub-topics
LocalizableTextEJBDeploy command

Related tasks
Task overview: Internationalizing interface strings (localizable-text API)
Task overview: Using enterprise beans in applications