Home > Articles > Programming > Java

  • Print
  • + Share This
This chapter is from the book


  1. How do I filter the messages received by the notification listener in the WebLogic Server logging framework?

  1. To enable filtering of log messages, the notification listener must implement the javax.management.NotificationFilter interface. You should write the necessary filtering or parsing functionality in the isNotificationEnabled() method. The contents of the logged message are wrapped in the WebLogicLogNotification object.

  1. When is it recommended to use the i18n message catalog framework, and when to use the NonCatalogLogger API?

  1. For enterprise applications that potentially require displaying and logging messages in different languages, or for easier management of a large number of messages, you would be better off using the i18n message catalog framework. Even though initially more effort is required, in the long run this framework is easier to maintain and expand for different languages. The NonCatalogLogger API, on the other hand, is simpler to implement. It should be used where the application is not going to require an elaborate messaging framework.

  • + Share This
  • 🔖 Save To Your Account