Capture the benefits of asynchronous logging
Develop an asynchronous log service using JMS and Hibernate
This article will help you develop a simple log service. The service creates some log messages, sends them across the network to a JMS provider,
Tutorial Details:
Hibernate is an open source product that eliminates JDBC coding. It is a tool for object-relational (OR) mapping within Java environments. It creates a mapping between Java objects and database entities. Object-relational mapping is a key requirement in enterprise projects. The data produced or changed as a result of processes must be persisted. Persisting data can turn into a nightmare for developers, especially if the data model is always changing the user requirements. Hibernate can alleviate complications resulting from data persistence. Refer to Resources for more information on Hibernate. The log service framework we develop in this article uses Hibernate as a medium for OR persistence.
Enterprise messaging
J2EE continues to mature with respect to distributed computing environments. We can leverage many of its features, such as JMS, to develop asynchronous services. JMS is a specification from Sun Microsystems and its partners that covers inter-application messaging standards. See Resources to download the specification. Third-party vendors implement the specification defined by Sun. JMS is designed to handle different message types without the messages having knowledge of each other.
Remote procedure call (RPC) models such as RMI (remote method invocation), SOAP (Simple Object Access Protocol), and ORB (object request broker) are interface-centric, meaning the publisher expects a return value. In the case of JMS, the sender has no knowledge of the receiver. The applications that send and receive messages do not communicate via a standard communication channel. In fact they delegate the responsibility of delivering the messages to the JMS provider. The applications\' jobs are completed when they post a message to the destination.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Capture the benefits of asynchronous logging
View Tutorial: Capture the benefits of asynchronous logging
Related
Tutorials:
Programming Java threads in the
real world, Part
8
Programming Java threads in the
real world, Part
8 |
Log4j delivers
control over logging - JavaWorld November 2000
Log4j delivers
control over logging - JavaWorld November 2000 |
Add the power of asynchronous processing to your JSPs - JavaWorld February 2001
Create custom JSP tags to use with JMS ost JavaServer Pages (JSP) developers that |
Become a programming Picasso with JHotDraw -
JavaWorld
February 2001
Become a programming Picasso with JHotDraw -
JavaWorld
February 2001 |
XML messaging, Part 1 - JavaWorld March 2001
XML messaging, Part 1 - JavaWorld March 2001 |
Log it or loose
it
Log it or loose
it |
Cut down on
logging errors with Jylog
Cut down on
logging errors with Jylog |
I want my AOP!,
Part 2
I want my AOP!,
Part 2 |
I want my AOP!, Part 3
I want my AOP!, Part 3 |
Repair invalid cached services in the Service Locator pattern
Repair invalid cached services in the Service Locator pattern |
Bridge the gap between Java and Twain
Bridge the gap between Java and Twain |
Business process
automation
made easy with
Java, Part 2
Business process
automation
made easy with
Java, Part 2 |
Enhance your J2EE presentation layer
Enhance your J2EE presentation layer |
Capture the benefits of asynchronous logging
Capture the benefits of asynchronous logging
Develop an asynchronous log service using JMS and Hibernate
This article will help you develop a simple log service. The service creates some log messages, sends them across the network to a JMS provider, |
FindBugs, Part 2: Writing custom detectors
FindBugs, Part 2: Writing custom detectors
How to write custom detectors to find application-specific problems
In the first article in this series, I showed you how to set up and execute FindBugs. Now we'll take a look at FindBugs' most powerful fea |
Asynchronous IO for Java
What is Asynchronous IO for Java?
Asynchronous IO for JavaTM (AIO4J) is a package that provides the capability to perform input and output (IO) on sockets and files asynchronously -- that is, where the Java application can request the operation but can |
Reporting Application Errors by Email
Reporting Application Errors by Email
It is common practice for server-side applications to log messages to files on the server's file system. These logs are a vital source of information for system administrators and the application development team. If |
JTwain
JTwain will implement a Java interface to the the Win32 C DLL TWAIN acquire methods. |
Write custom appenders for log4j
The Apache Software Foundation's log4j logging library is one of the better logging systems around. It's both easier to use and more flexible than Java's built-in logging system. |
Comparing J2ME Multimedia Options
This article presents the latest developments in MMAPI: the new security considerations raised in MMAPI 1.1, the differences between MMAPI and the MIDP 2.0 Media API, J2ME Wireless Toolkit 2.2 support for MMAPI, and JSR 234, Advanced Multimedia Supplement |
|
|
|