Overview:
=========
  This is a demonstration of a Hibernate listener. This test is configured 
  to use a mysql database running on localhost (see jbossesb.xml).  This 
  quickstart builds an ear containing both an .esb and a .war.  The .war
  has a series of .jsps which demonstrate insert/delete/load/update.   

  If you browse the .war and insert items, you can see the Hibernate entities
  that you load and delete items, you can watch the Hibernate entities sent
  in messages to JBoss's console. 

  Here are the Hibernate Interceptor events which can be listened for:
    onCollectionRemove
    onCollectionUpdate
    onDelete
    onFlushDirty
    onLoad
    onSave

  See the sample jboss-esb.xml for how these are used within a
  <hibernate-message-filter>.

Running this quickstart:
========================
  Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts
  and a more detailed descripton of the different ways to run the quickstarts.

  Make sure that you have MySQL running before starting this quickstart.  Once
  it is running, execute 'ant createdb' to create the database.   

  Installation instructions can be found in the install/readme.txt.

Setting up MySQL 
======================= 
By default, this quickstart uses a standard MySQL database with root as the
user and no password set.    You can easily change these settings by changing
the hibernate.cfg.xml file.    Note that you may also have to make minor 
modifications to the createdb target of build.xml.

This quickstart uses the same database settings that are required in the 
helloworld_sql_action quickstart.

To Run .esb mode:
=======================
  1. In a command terminal window in the quickstart folder type 'ant deploy'.
  2. Start your appserver.    This quickstart deploys a jar into a common
     lib directory, so it is important that the app server be started 
     after deployment.    You may see JSP compilation errors if you try
     to deploy the quickstart for the first time while the appserver is 
     still running.
  3. Assuming that your appserver is running tomcat on port 8080, Browse to
     http://localhost:8080/hibernateaction/index.jsp
  4. Watch the events in the JBoss appserver console.
  5. To undeploy the application, type 'ant undeploy'
