Turnleaf Design Ramblings of a junior developer

6Oct/106

Log4j 4 Enterprise

Logging is an important part of any application. Logging provides debugging information, the state of the application, and a record of what happened when the application failed. As applications increase in size so does the demands and complexity of logging. Without a proper logging system it can become difficult to determine from where in an application a log statement is being executed and without an easy way of changing logging behavior it can have a negative effect on an application's performance.

The Apache Foundation maintains the log4j project which is an easy to use system that provides a large array of really cool features for logging. This tutorial, part of my dev environment series, is an introduction into using log4j in an enterprise setting. Topics that I will cover include; implementing log4j in a project, customizing the log statement, usage of appenders, creating loggers and logger inheritence,  and setting up log4j to work on an application server. This will cover many of the basic needs of enterprise logging.

A few simple steps before we begin...

As with all my tutorials that involve coding you can download the source code here. In this example I will be using the project HttpExample, starting on revision 24. If you want to work on this code locally you will also need the log4j library which can be found here, and then add it to your project's classpath by right clicking on your project > build path > add external libraries and then navigate to the library's location (if you are using eclipse).

Technorati Tags: , ,

7Oct/093

Trends: REST to over take SOAP?

Not too long ago I took a class for developing web services. The content of the class focused almost exclusively on developing SOAP based web services. While there is nothing particularly difficult about SOAP, it seemed to require a lot of steps; defining your data elements, creating a wsdl, and all the tools you had to use. While having a contract can be beneficial when the web service will be facing external clients, it seemed to be a lot of steps to go through to get a web service going and also heavy-weight.

Technorati Tags:

17Sep/090

Link Dump 9/17

http://www.sixrevisions.com/ - A very active website that focuses on web design.

http://www.net.tutsplus.com/ - Has excellent tutorials on web design and development

http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html – An absolute must check out for all Java developers. Focuses on best practices for Java developers. Though I wouldn't recommend it for the very new as the concepts may be a bit advanced.

http://www.ohloh.net/ - A very good place to start if you are looking to contribute to an open source project.

Technorati Tags: , , , , ,

15Sep/090

Link Dump

http://www.smashingmagazine.com/ - An excellent with a focus on front end web development. Frequently updated with very well written articles.

http://www.alistapart.com/ - Another excellent website focusing on web development. However there is more of an emphasis of best practices, growing trends, and new ideas, instead of just the latest technologies.

http://www.javamex.com/ - A java site that does a really good job of getting down into the nuts a bolts of how Java works.

Technorati Tags: , , ,