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