You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2011/10/30 04:56:13 UTC

svn commit: r1195111 - /openejb/trunk/openejb/examples/simple-mdb/README.md

Author: dblevins
Date: Sun Oct 30 03:56:13 2011
New Revision: 1195111

URL: http://svn.apache.org/viewvc?rev=1195111&view=rev
Log:
Patch from Vishwanath, OPENEJB-1638: Examples documentation
Thanks, Vishwanath!

Modified:
    openejb/trunk/openejb/examples/simple-mdb/README.md

Modified: openejb/trunk/openejb/examples/simple-mdb/README.md
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/examples/simple-mdb/README.md?rev=1195111&r1=1195110&r2=1195111&view=diff
==============================================================================
--- openejb/trunk/openejb/examples/simple-mdb/README.md (original)
+++ openejb/trunk/openejb/examples/simple-mdb/README.md Sun Oct 30 03:56:13 2011
@@ -1,5 +1,7 @@
 Title: Simple MDB
 
+#Simple MDB
+
 Below is a fun app, a chat application that uses JMS. We create a message driven bean, by marking our class with `@MessageDriven`. A message driven bean has some similarities with a stateless session bean, in the part that it is pooled too.
 
 Well, lets tell our chat-app to listen for incoming messages. That we do by implementing `MessageListener` and overriding the `onMessage(Message message)`.
@@ -10,6 +12,10 @@ That finishes our message driven bean im
 
 In this case, it is to respond to the user. The `respond` method shows how a Message can be sent.
 
+This sequence diagram shows how a message is sent.
+
+<img src="../../images/mdb-flow.png" alt=""/>
+
 ## ChatBean
 
     package org.superbiz.mdb;