Assembling internationalized applications
Overview
Use assembly tool to configure internationalization in the deployment descriptors for servlets and enterprise beans.
Procedure
- 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 J2EE 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 that are described in one of the following topics:
- Setting the internationalization type for servlets
- Setting 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 Enterprise JavaBeans (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 that are described in one of the following topics:
- Configuring container internationalization for servlets
- Configuring container internationalization for enterprise beans
See also
Setting the internationalization type for servlets
Configuring container internationalization for servlets
Setting the internationalization type for enterprise beans
Configuring container internationalization for enterprise beans
Related Tasks
Task overview: Internationalizing application components (internationalization service)
Assembling applications