net.sf.xbus.base.journal
Class DBJournal

java.lang.Object
  extended by net.sf.xbus.base.journal.DBJournal
All Implemented Interfaces:
JournalInterface

public class DBJournal
extends java.lang.Object
implements JournalInterface

DBJournal writes information about the activities of the middleware into the database.

The information is stored in the database-table journal. An instance of DBConnection is used for handling the database-connection.


Constructor Summary
DBJournal()
           
 
Method Summary
 void commit()
          Commits the database.
 void log(char type, XBUSSystem system, Message message)
          Writes a middleware-activity to the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBJournal

public DBJournal()
Method Detail

log

public void log(char type,
                XBUSSystem system,
                Message message)
         throws XException
Writes a middleware-activity to the database. An activity can be:

The Configuration stores, which activities are written. All other activities are ignored.

Specified by:
log in interface JournalInterface
Parameters:
type - R: message has been received, S: message has been send
system - The name of the system, from which the message has been received or where the message has been sent to.
message - The Message-object that represents the data of the message.
Throws:
XException

commit

public void commit()
            throws XException
Commits the database.

Specified by:
commit in interface JournalInterface
Throws:
XException