Scott Van Wart wrote:
I'm implementing my own MessageResources and MessageResourcesFactory-derived classes. Do these need to be thread-safe, specifically, the 'String MessageResources.getMessage( Locale locale, String key )'?

The factory probably doesn't; I would expect it to be called once during startup. But getMessage() would need to be thread-safe unless your MessageResources implementation is immutable. Remember that the resource bundle is shared across all requests, so it will be accessed concurrently.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to