
Implementing Centralized Logging with JDK 1.4
Logging messages is an integral part of any application, particularly in a web-centric
environment where it is difficult to run the code within a debugger. In fact, it is so
important that a logging API is bundled with JDK 1.4. These log messages are not only
used by developers for debugging their code but can also be used in production
environment to troubleshoot problems that may result due to incorrect configuration. In a
web-centric architecture sometime is it important to send all log messages to a centralized
server, which eventually writes them to their final destination(s). This article introduces a
generic mechanism to send and receive messages to a remote server by extending the
logging API in JDK 1.4.
Click here for article
Click here for source code
Creating a powerful database client with JSP
Leveraging a web server as a database broker using XML
Almost all the relational databases require some libraries on the
client side. These libraries are responsible for transporting client's request to
the server and other low-level network communication between the two ends. Since
these libraries use their own propriety protocol, it is virtually impossible to avoid
installing all the client binaries that are required. XML promises a solution that
can eliminate this dependency. All you need is an XML parser that can be used to
filter the database records out from the text. However, be careful,
you don't want to over estimate this technology and completely eliminate the client.
Click here for article
Click here for source code