|
Quick Lists
|
|
Bug ID:
|
5072267
|
|
Votes
|
0
|
|
Synopsis
|
Should have a way to communicate client locale to server
|
|
Category
|
jmx:classes
|
|
Reported Against
|
mustang
|
|
Release Fixed
|
7(b41)
|
|
State
|
10-Fix Delivered,
request for enhancement
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
6635499
,
6663757
,
6753790
,
6759617
,
5072268
,
5106222
|
|
Submit Date
|
08-JUL-2004
|
|
Description
|
There should be a way for the remote client to communicate information such as its locale to the server. MBeans remotely invoked by the client should be able to discover this locale, for example to return localized text in MBeanInfo descriptions or as the result of operations. The locale or other information should be available in a well-known ThreadLocal variable or a variable of a class that wraps a ThreadLocal. Currently the only (hacky) way to achieve this is to arrange for the locale to be encoded in a Principal within the authenticated Subject for the connection.
|
|
Work Around
|
As of Mustang it is possible to localize descriptions in the *client* if the server has added appropriate descriptionResourceKey and descriptionResourceBundleBaseName fields in the Descriptor for the MBean. This means that the client must have resource bundles containing the localized descriptions, so this will not work out-of-the-box for generic clients such as jconsole.
|
|
Evaluation
|
The plan is to introduce a new namespace once namespace functionality is available.
If you access the MBean "javax.management.context//locale=fr_FR//d:k=v", then it is the same as accessing plain d:k=v, except that the key "locale" is associated with the value "fr_FR" in a Map<String, String> that is available to MBeans being accessed. This mechanism is much more general than just locales, and could be used for example to communicate a transaction id or any other information from the client to the server.
Posted Date : 2007-06-15 15:05:21.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |