Client Locale Problem

Discussions

EJB programming & troubleshooting: Client Locale Problem

  1. Client Locale Problem (1 messages)

    Hello,

    we have a Problem to get the Locale of the Clients which are connected to the EJB Server. Is there a way to get the Locale of the Client which is registered by the EJB Container ? Is it possible to get the Locale from the Thread ID ?

    The Clients connect the Server by Servlets.

    Thanks,
    Sven
  2. Client Locale Problem[ Go to top ]

    There is no easy way for the EJB server to get the locale. Your options are:

    1) Pass the locale as a method parameter from your web layer to you EJB layer.

    2) Don't do any localization in your EJB layer. Pass "generic" messages, and localize in your Web layer.

    Of these options, (2) will be better in the long run.