J2EE Localization with WAS



Hi,

I have a question about localization, and the standard way of doing it
in J2EE, more specifically in WAS6.0. I would like the client to
receive localized messages. One way of doing it, is have the client and
the server in sync with some message catalog, and the client shall
localize the message by an id sent from the server. Another approach is
to add to all API calls in the server, the client locale, and the
server will localize the message. A third approach is to pass the
locale as part of the login process, have the server maintain it, and
localize the messages to the client. The advantage of the last two
approaches is that the client does not need to synchronize its message
catalog with the server. The downside of the last one is that will not
work if the client changes its locale in runtime. The downside of
adding locale to API is that it does not seem reasonable to pollute the
business logic API with localization information.

So, I would go with the last approach of passing the locale in the
authentication, and save it somewhere in the server, only I'm not sure
it's feasible, and less sure that it is the *right* thing.

Help much appreciated!
Thanks.

.



Relevant Pages

  • Re: COM Error handling - support for passing the locale
    ... locale per client. ... SetLCIDForErrorMessages - and have the server implement this interface ... The client would then query ...
    (microsoft.public.win32.programmer.ole)
  • Exception externalization
    ... I see the three following possibilities for the server: ... Request client locale within client calls and return ... Return not text but exception code so the client ...
    (comp.lang.java.programmer)
  • Re: COM Error handling - support for passing the locale
    ... Anna wrote: ... different locale) talking to the server at one time, ... preserve the locale per client. ... Have each client create their own instance of the component. ...
    (microsoft.public.win32.programmer.ole)
  • Re: CORBA Server cannt running normally( with Naming Service & Notification Service)
    ... Locale and codeset are two different things. ... The codeset specifies how text characters are mapped to numeric values suitable for processing by a computer. ... You don't specify above if the client and server are on the same host, or simply on a similarly configured platform. ...
    (comp.object.corba)
  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)