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