What is the recommended approach for transmitting Locale and other context information with a message?
This might sound simple in principle and perhaps it is but consider ..
An application that supports many Locales and many industries. Each industry has its own set of terminology. So when a user logs in they see industry terminology and language pertinent to who they are. This much can be achieved with a specialised ResourceBundle.
But as part of that user's webflow they generate several messages that are processed asynchronously. Some of those messages may result in a document or email being generated and dispatched to a user that displays content generated in the context of an industry and Locale. Generally this would be the same context as that of the originating user.
So what is the best mechanism for transmitting that context along with the message? Adding it to all messages seems a little heavy handed and warps the business intent of the message. Is there a better approach?


Reply With Quote