QA

Q&A

Q1:

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

A1:

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.

Q2:

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

A2:

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.



Sams Teach Yourself BEA WebLogic Server 7. 0 in 21 Days
Sams Teach Yourself BEA WebLogic Server 7.0 in 21 Days
ISBN: 0672324334
EAN: 2147483647
Year: 2002
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net