Preparing the localizable-text package for deployment

The first step is to write code to compose the language-specific strings..

After that, the LocalizableTextEJBDeploy tool is used to create a deployment JAR for the Localizable Text service. You must deploy the enterprise bean in each enterprise application that requires support for localized text.

  1. Make sure the LocalizableTextEJBDeploy tool (ltext.jar) exists in the lib directory under the product's installation root directory.

  2. Set up a working directory for the LocalizableTextEJBDeploy tool to use.You will 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, the generated JNDI name will be incorrect.

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

Using the Assembly Toolkit, assemble the deployment JAR in an enterprise application with other application components.

As part of preparing for deployment, verify the following...

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

 

See Also

Internationalizing applications
Using enterprise beans in applications
LocalizableTextEJBDeploy command