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 2007/01/19 16:14:46 UTC

svn commit: r497841 - in /incubator/openejb/trunk/openejb3/examples: calculator-stateless-pojo/README.txt counter-stateful-pojo/README.txt

Author: dblevins
Date: Fri Jan 19 07:14:45 2007
New Revision: 497841

URL: http://svn.apache.org/viewvc?view=rev&rev=497841
Log:
Forgot the readme files on those two patches

Added:
    incubator/openejb/trunk/openejb3/examples/calculator-stateless-pojo/README.txt
    incubator/openejb/trunk/openejb3/examples/counter-stateful-pojo/README.txt

Added: incubator/openejb/trunk/openejb3/examples/calculator-stateless-pojo/README.txt
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/examples/calculator-stateless-pojo/README.txt?view=auto&rev=497841
==============================================================================
--- incubator/openejb/trunk/openejb3/examples/calculator-stateless-pojo/README.txt (added)
+++ incubator/openejb/trunk/openejb3/examples/calculator-stateless-pojo/README.txt Fri Jan 19 07:14:45 2007
@@ -0,0 +1,24 @@
+This example shows how to create a session stateless EJB using annotations.
+
+As stated in the "JSR 220: Enterprise JavaBeansTM,Version 3.0 - EJB Core Contracts and Requirements", 
+
+"Stateless session beans are session beans whose instances have no conversational state. This means that
+all bean instances are equivalent when they are not involved in servicing a client-invoked method.
+The term 'stateless' signifies that an instance has no state for a specific client."
+
+With EJB 3.0, it's now possible to write stateless session bean without specifying a deployment descriptor; you basically have to write just
+
+  * a remote or local business interface, which is a plain-old-java-interface, annotated with the @Remote or @Local annotation
+  * the stateless session bean implementation, a plain-old-java-object which implements the remote or the local business interface and is annotated with the @Stateless annotation
+  
+The source for this example can be checked out from svn:
+
+ $ svn co http://svn.apache.org/repos/asf/incubator/openejb/trunk/openejb3/examples/calculator-stateless-pojo/
+
+To run the example simply type:
+
+ $ cd calculator-stateless-pojo
+
+ $ mvn clean install
+
+

Added: incubator/openejb/trunk/openejb3/examples/counter-stateful-pojo/README.txt
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/examples/counter-stateful-pojo/README.txt?view=auto&rev=497841
==============================================================================
--- incubator/openejb/trunk/openejb3/examples/counter-stateful-pojo/README.txt (added)
+++ incubator/openejb/trunk/openejb3/examples/counter-stateful-pojo/README.txt Fri Jan 19 07:14:45 2007
@@ -0,0 +1,22 @@
+This example shows how to create a session stateful EJB using annotations.
+
+A stateful session bean is a session bean whose instances can maintain the conversational state with the client.
+The conversational state of the stateful session bean, which describes the conversation between a specific 
+client and a session bean, is contained in the fields of the stateful session bean.
+
+With EJB 3.0, it's now possible to write stateful session bean without specifying a deployment descriptor; you basically have to write just
+
+  * a remote or local business interface, which is a plain-old-java-interface, annotated with the @Remote or @Local annotation
+  * the stateful session bean implementation, a plain-old-java-object which implements the remote or the local business interface and is annotated with the @Stateful annotation
+  
+The source for this example can be checked out from svn:
+
+ $ svn co http://svn.apache.org/repos/asf/incubator/openejb/trunk/openejb3/examples/counter-stateful-pojo/
+
+To run the example simply type:
+
+ $ cd counter-stateful-pojo
+
+ $ mvn clean install
+
+