[Version 5.0.2 and later]Using the internationalization service

Why and when to perform this task

The internationalization service adds APIs and tooling that enable J2EE applications to manage the distribution of internationalization information, or internationalization context, necessary to perform localizations within server-side application components. This topic summarizes the steps involved in using the internationalization service.

Steps for this task

  1. If you have an application that uses the WebSphere Version 4.0 internationalization service,migrate your application as needed.
  2. Use the internationalization context API within application components to obtain or manage internationalization context.
    Servlet and enterprise bean business methods can use internationalization context to perform locale- and time zone-sensitive localizations. EJB client applications, and server components configured to manage internationalization context must use the internationalization context API to set the context elements scoped to their invocations.

    [Version 5.0.2 and later]You use the internationalization context API within Web service-enabled J2EE client programs and stateless session beans in the same manner as you would in conventional J2EE components, with one exception: Internationalization context propagated over Web services requests contains a time zone ID, whereas conventional RMI/IIOP requests propagate complete time zone information, including the raw offset, DST information, and so on.

  3. Assemble internationalized applications.

    Internationalization type specifies the internationalization policy applicable to a servlet or an enterprise bean and, in particular, indicates whether the application component or its hosting J2EE container will manage internationalization context. Container internationalization attributes can be specified for container-managed servlet and enterprise bean business methods. These attributes tailor a policy by indicating which context the container will scope to an invocation. Configuring internationalization policies declaratively prescribes, by means of the application's deployment descriptor, the distribution and management of context throughout an application.

    [5.0 only][Version 5.0.1][Version 5.0.2]Use the Application Assembly Tool to configure the internationalization type and any container internationalization attributes for the servlets and enterprise beans in your application.

    [Version 5.0.2 and later]You configure internationalization type and container internationalization attributes for Web service-enabled stateless session beans in the same manner as you do for conventional beans.

  4. Manage the internationalization service.
    Use the administrative console to enable the service on all application servers.

    By default, the service is enabled within J2EE client environments but is disabled on application servers. You must enable the service on all application servers hosting your application's servlets and enterprise beans in order to use internationalization context.

    [Version 5.0.2 and later]This also applies to J2EE Web service client environments and Web service-enabled enterprise beans.

  5. Troubleshoot the internationalization service as needed.
    Use the administrative console to enable the trace service to log internationalization service messages when debugging your applications.

Related concepts
Internationalization
Internationalization service: Overview
Internationalization context: Management policies
Related reference
Internationalization: Resources for learning



Searchable topic ID:   tin_enterpriseep
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/i18n/tasks/tin_enterpriseep.html

Library | Support | Terms of Use | Feedback