Preparing the localizable-text package for deployment
Overview
Write code to compose the language-specific strings.
Overview
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.
- Make sure the LocalizableTextEJBDeploy tool (ltext.jar) exists in the lib directory under the product's installation root directory.
- 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.
- 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 specified.
What to do next
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:
- Add the resource bundles for your application to the EAR as files.
- Add the location of the EAR to the server's class path. This is so the resource bundles can be located on the virtual host and server.
The same deployment JAR can be included in several enterprise applications.
Internationalizing applications
Using enterprise beans in applications
LocalizableTextEJBDeploy command