[Enterprise Extensions only]

Thread association considerations

Internationalization context (locales and time zone) is thread scoped. Methods of the Internationalization context API either associate context to or obtain context associated with the thread on which they execute. In cases where new threads are spawned within an application component (for instance, a user generated thread inside the service() method of a servlet or a system generated event handling thread in an AWT client) the Internationalization context associated with the parent thread does not automatically transfer to the newly spawned thread. In such instances, the Internationalization Service propagates the default locale and time zone on any remote method invocations executed on the new thread. If the default context is inappropriate, the desired invocation context elements must be explicity associated to the new thread using the setXxx() methods of the InvocationInternationalization interface. Currently, Internationalization context management policies allow invocation context to be set within Enterprise JavaBean client programs, but not within servlets and Enterprise JavaBeans. For additional information, see The InvocationInternationalization interface.