+

Search Tips   |   Advanced Search

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.

  1. 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:

  2. 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:


Subtopics


Related tasks

  • Task overview: Internationalizing application components (internationalization service)
  • Assembling applications