[Version 5.0.2 and later]Using the internationalization context API

Before you begin

Enterprise JavaBeans (EJB) client applications, servlets, and enterprise beans can programmatically obtain and manage internationalization context using the internationalization context API.

The java.util and com.ibm.websphere.i18n.context packages contain all classes necessary to use the internationalization service within an EJB application. Classes specific to the internationalization service reside in the file WAS_HOME/lib/i18nctx.jar. Before compiling application components that import internationalization service classes, add the i18nctx.jar file to your CLASSPATH.

Steps for this task

  1. Gain access to the internationalization context API.
  2. Access caller locales and time zone.
  3. Access invocation locales and time zone.

Example

Each EJB application component uses the internationalization context API differently. Three code examples are provided that illustrate how to use the API within each application type. Differences in API usage, as well as other coding tips, are noted in comments that precede the relevant statement blocks.

[Version 5.0.2 and later]For Web services client applications and stateless session beans, you use the API to obtain and manage internationalization context in the same manner as for EJB clients and enterprise beans, respectively.


Related concepts
Internationalization context: Management policies
Related reference
Example: Internationalization context in an EJB client program
Example: Internationalization context in a servlet
Example: Internationalization context in a session bean
Internationalization context API: Programming reference



Searchable topic ID:   tin_manageapi
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_manageapi.html

Library | Support | Terms of Use | Feedback