Author: dblevins
Date: Tue Sep 25 21:06:11 2007
New Revision: 579458

URL: http://svn.apache.org/viewvc?rev=579458&view=rev
Log:
Finalized annotations spec version and updated comments

Modified:
    openejb/trunk/openejb3/examples/calculator-stateless-pojo/pom.xml
    openejb/trunk/openejb3/examples/counter-stateful-pojo/pom.xml
    openejb/trunk/openejb3/examples/ejb-injection/pom.xml
    openejb/trunk/openejb3/examples/expanded-env-entries/pom.xml
    openejb/trunk/openejb3/examples/helloworld-stateful-pojo/pom.xml
    openejb/trunk/openejb3/examples/resource-injection/pom.xml

Modified: openejb/trunk/openejb3/examples/calculator-stateless-pojo/pom.xml
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/calculator-stateless-pojo/pom.xml?rev=579458&r1=579457&r2=579458&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/calculator-stateless-pojo/pom.xml (original)
+++ openejb/trunk/openejb3/examples/calculator-stateless-pojo/pom.xml Tue Sep 
25 21:06:11 2007
@@ -78,11 +78,14 @@
         Properties properties = new Properties();
         properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.client.LocalInitialContextFactory");
 
-        // Tells OpenEJB to look for META-INF/ejb-jar.xml files in the 
classpath
-        properties.setProperty("openejb.deployments.classpath", "true");
-
         initialContext = new InitialContext(properties);
 
+    And include an add a src/main/resources/META-INF/ejb-jar.xml
+    file to your project containing at least "<ejb-jar/>"
+
+    There is a method for finding your app without the need for
+    an ejb-jar.xml via annotation scraping the classpath.  See:
+    http://openejb.apache.org/loading-deployments-from-the-classpath.html
     -->
     <dependency>
       <groupId>org.apache.openejb</groupId>

Modified: openejb/trunk/openejb3/examples/counter-stateful-pojo/pom.xml
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/counter-stateful-pojo/pom.xml?rev=579458&r1=579457&r2=579458&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/counter-stateful-pojo/pom.xml (original)
+++ openejb/trunk/openejb3/examples/counter-stateful-pojo/pom.xml Tue Sep 25 
21:06:11 2007
@@ -78,11 +78,14 @@
         Properties properties = new Properties();
         properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.client.LocalInitialContextFactory");
 
-        // Tells OpenEJB to look for META-INF/ejb-jar.xml files in the 
classpath
-        properties.setProperty("openejb.deployments.classpath", "true");
-
         initialContext = new InitialContext(properties);
 
+    And include an add a src/main/resources/META-INF/ejb-jar.xml
+    file to your project containing at least "<ejb-jar/>"
+
+    There is a method for finding your app without the need for
+    an ejb-jar.xml via annotation scraping the classpath.  See:
+    http://openejb.apache.org/loading-deployments-from-the-classpath.html
     -->
     <dependency>
       <groupId>org.apache.openejb</groupId>

Modified: openejb/trunk/openejb3/examples/ejb-injection/pom.xml
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/ejb-injection/pom.xml?rev=579458&r1=579457&r2=579458&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/ejb-injection/pom.xml (original)
+++ openejb/trunk/openejb3/examples/ejb-injection/pom.xml Tue Sep 25 21:06:11 
2007
@@ -78,11 +78,14 @@
         Properties properties = new Properties();
         properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.client.LocalInitialContextFactory");
 
-        // Tells OpenEJB to look for META-INF/ejb-jar.xml files in the 
classpath
-        properties.setProperty("openejb.deployments.classpath", "true");
-
         initialContext = new InitialContext(properties);
 
+    And include an add a src/main/resources/META-INF/ejb-jar.xml
+    file to your project containing at least "<ejb-jar/>"
+
+    There is a method for finding your app without the need for
+    an ejb-jar.xml via annotation scraping the classpath.  See:
+    http://openejb.apache.org/loading-deployments-from-the-classpath.html
     -->
     <dependency>
       <groupId>org.apache.openejb</groupId>

Modified: openejb/trunk/openejb3/examples/expanded-env-entries/pom.xml
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/expanded-env-entries/pom.xml?rev=579458&r1=579457&r2=579458&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/expanded-env-entries/pom.xml (original)
+++ openejb/trunk/openejb3/examples/expanded-env-entries/pom.xml Tue Sep 25 
21:06:11 2007
@@ -63,7 +63,7 @@
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-annotation_1.0_spec</artifactId>
-      <version>1.0-SNAPSHOT</version>
+      <version>1.0</version>
       <scope>provided</scope>
     </dependency>
     <dependency>
@@ -74,23 +74,26 @@
     </dependency>
 
     <!--
-      Nice thing about maven2 is it has test-only dependencies.
-      This guarantees that non of your runtime code is dependent
-      on any OpenEJB classes.
-      
-      For those of you who want to know the minimum steps required
-      to add OpenEJB for testing to an existing maven 2 build, you
-      simply add this dependency below and in your test code create
-      your InitialContext like such:
-      
-      Properties properties = new Properties();
-      properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.client.LocalInitialContextFactory");
-      
-      // Tells OpenEJB to look for META-INF/ejb-jar.xml files in the classpath
-      properties.setProperty("openejb.deployments.classpath", "true");
-      
-      initialContext = new InitialContext(properties);
-      
+    Nice thing about maven2 is it has test-only dependencies.
+    This guarantees that non of your runtime code is dependent
+    on any OpenEJB classes.
+
+    For those of you who want to know the minimum steps required
+    to add OpenEJB for testing to an existing maven 2 build, you
+    simply add this dependency below and in your test code create
+    your InitialContext like such:
+
+        Properties properties = new Properties();
+        properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.client.LocalInitialContextFactory");
+
+        initialContext = new InitialContext(properties);
+
+    And include an add a src/main/resources/META-INF/ejb-jar.xml
+    file to your project containing at least "<ejb-jar/>"
+
+    There is a method for finding your app without the need for
+    an ejb-jar.xml via annotation scraping the classpath.  See:
+    http://openejb.apache.org/loading-deployments-from-the-classpath.html
     -->
     <dependency>
       <groupId>org.apache.openejb</groupId>

Modified: openejb/trunk/openejb3/examples/helloworld-stateful-pojo/pom.xml
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/helloworld-stateful-pojo/pom.xml?rev=579458&r1=579457&r2=579458&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/helloworld-stateful-pojo/pom.xml (original)
+++ openejb/trunk/openejb3/examples/helloworld-stateful-pojo/pom.xml Tue Sep 25 
21:06:11 2007
@@ -85,11 +85,14 @@
         Properties properties = new Properties();
         properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.client.LocalInitialContextFactory");
 
-        // Tells OpenEJB to look for META-INF/ejb-jar.xml files in the 
classpath
-        properties.setProperty("openejb.deployments.classpath", "true");
-
         initialContext = new InitialContext(properties);
 
+    And include an add a src/main/resources/META-INF/ejb-jar.xml
+    file to your project containing at least "<ejb-jar/>"
+
+    There is a method for finding your app without the need for
+    an ejb-jar.xml via annotation scraping the classpath.  See:
+    http://openejb.apache.org/loading-deployments-from-the-classpath.html
     -->
     <dependency>
       <groupId>org.apache.openejb</groupId>

Modified: openejb/trunk/openejb3/examples/resource-injection/pom.xml
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/resource-injection/pom.xml?rev=579458&r1=579457&r2=579458&view=diff
==============================================================================
--- openejb/trunk/openejb3/examples/resource-injection/pom.xml (original)
+++ openejb/trunk/openejb3/examples/resource-injection/pom.xml Tue Sep 25 
21:06:11 2007
@@ -19,7 +19,7 @@
 
 <!-- $Rev$ $Date$ -->
 
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
+<project xmlns="http://maven.apache.org/POM/4.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>
@@ -63,7 +63,7 @@
     <dependency>
       <groupId>org.apache.geronimo.specs</groupId>
       <artifactId>geronimo-annotation_1.0_spec</artifactId>
-      <version>1.0-SNAPSHOT</version>
+      <version>1.0</version>
       <scope>provided</scope>
     </dependency>
     <dependency>
@@ -74,23 +74,26 @@
     </dependency>
 
     <!--
-      Nice thing about maven2 is it has test-only dependencies.
-      This guarantees that non of your runtime code is dependent
-      on any OpenEJB classes.
-      
-      For those of you who want to know the minimum steps required
-      to add OpenEJB for testing to an existing maven 2 build, you
-      simply add this dependency below and in your test code create
-      your InitialContext like such:
-      
-      Properties properties = new Properties();
-      properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.client.LocalInitialContextFactory");
-      
-      // Tells OpenEJB to look for META-INF/ejb-jar.xml files in the classpath
-      properties.setProperty("openejb.deployments.classpath", "true");
-      
-      initialContext = new InitialContext(properties);
-      
+    Nice thing about maven2 is it has test-only dependencies.
+    This guarantees that non of your runtime code is dependent
+    on any OpenEJB classes.
+
+    For those of you who want to know the minimum steps required
+    to add OpenEJB for testing to an existing maven 2 build, you
+    simply add this dependency below and in your test code create
+    your InitialContext like such:
+
+        Properties properties = new Properties();
+        properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.apache.openejb.client.LocalInitialContextFactory");
+
+        initialContext = new InitialContext(properties);
+
+    And include an add a src/main/resources/META-INF/ejb-jar.xml
+    file to your project containing at least "<ejb-jar/>"
+
+    There is a method for finding your app without the need for
+    an ejb-jar.xml via annotation scraping the classpath.  See:
+    http://openejb.apache.org/loading-deployments-from-the-classpath.html
     -->
     <dependency>
       <groupId>org.apache.openejb</groupId>


Reply via email to