|
Helping ordinary people create extraordinary websites! |
Using Aspects to Autonomic-Enable Legacy ApplicationsBy Brian Temple2005-05-13
Introduction As a software solution grows in complexity, it becomes more and more difficult to determine the root cause of any non-trivial problem situation and to address it. The first major step toward a self-healing solution is the ability to correlate and analyze heterogeneous data from all components acting in a solution. The Generic Log Adapter and the Log and Trace Analyzer for Autonomic Computing (see Resources for download information) provide a toolset that enables the viewing, analysis, and correlation of log files generated by any application, including IBM® WebSphere® Application Server, IBM HTTP Server, IBM DB2® Universal Database, and Apache HTTP Server. This correlation is possible through the conversion to Common Base Events. Common Base Events are an XML-based event representation that has been submitted to the Organization for the Advancement of Structured Information Standards (OASIS) by IBM for standardization. Unfortunately, a software solution often depends on components written before an autonomic computing environment was created or even considered. These components might log only a subset of information that would now be useful for debugging complex error situations, or do so in a manner that does not allow for real-time analysis. In this article, I present a method of generating Common Base Events natively by leveraging Aspect-oriented programming (AOP). I also provide and describe an Aspect framework that can be customized or extended for your software environment. I discuss how to tie these newly generated Common Base Events into a common logging-enabled application such as the Log and Trace Analyzer for Autonomic Computing. Tutorial Pages: » Using Aspects to autonomic-enable legacy applications » Introduction » Example legacy application » Incorporating Aspects » An example Aspect framework to generate Common Base Events » How to use and extend the example Aspect framework » Next steps » Resources First published by IBM DeveloperWorks |
|