Assembling internationalized applications
Perform this task to configure application components for deployment with the internationalization service.
Use an assembly tool to configure internationalization in the deployment descriptors for servlets and enterprise beans.
- Set the internationalization type.
All servlets and enterprise beans have an internationalization type setting that specifies whether internationalization context is managed by the application component or by its hosting JEE container during invocations of their respective life cycle and business methods. The internationalization type can be configured for all server application components except entity beans, which are container-managed only.
By default, all server components use container-managed internationalization (CMI). The default setting suffices in most cases; when it does not, modify the internationalization type setting by completing the steps described in one of the following topics:
- Set the internationalization type for servlets
- Set the internationalization type for enterprise beans
- Set the container internationalization attribute.
We can associate CMI servlets, and business methods of CMI enterprise beans, with a container internationalization attribute. That attribute specifies which of three internationalization contexts (Caller, Server, or Specified) the container is to scope to an invocation. When running as specified, the container internationalization attribute also specifies the custom internationalization context elements.
Named container internationalization attributes can be associated with sets of servlets or with sets of EJB business methods. Initially, CMI servlets and business methods implicitly run as caller and do not associate with a container internationalization attribute. When the implicit behavior or an associated attribute setting is unsuitable, configure an attribute by completing the steps described in one of the following topics:
- Configure container internationalization for servlets
- Configure container internationalization for enterprise beans
Subtopics
- Set the internationalization type for servlets
This task sets the internationalization type for a servlet within a Web module.
- Configure container internationalization for servlets
This task configures container internationalization for a servlet within a Web module.
- Set the internationalization type for enterprise beans
This task sets the internationalization type for an enterprise bean within an EJB module.
- Configure container internationalization for enterprise beans
This task configures container internationalization for enterprise bean business methods.
Related tasks
Task overview: Internationalizing application components (internationalization service) Assembling applications