You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@tomee.apache.org by bu...@apache.org on 2012/04/17 06:54:52 UTC

svn commit: r813321 - in /websites/staging/openejb/trunk: cgi-bin/ content/ content/arquillian.html

Author: buildbot
Date: Tue Apr 17 04:54:52 2012
New Revision: 813321

Log:
Staging update by buildbot for openejb

Modified:
    websites/staging/openejb/trunk/cgi-bin/   (props changed)
    websites/staging/openejb/trunk/content/   (props changed)
    websites/staging/openejb/trunk/content/arquillian.html

Propchange: websites/staging/openejb/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 17 04:54:52 2012
@@ -1 +1 @@
-1326906
+1326925

Propchange: websites/staging/openejb/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Apr 17 04:54:52 2012
@@ -1 +1 @@
-1326906
+1326925

Modified: websites/staging/openejb/trunk/content/arquillian.html
==============================================================================
--- websites/staging/openejb/trunk/content/arquillian.html (original)
+++ websites/staging/openejb/trunk/content/arquillian.html Tue Apr 17 04:54:52 2012
@@ -136,13 +136,15 @@
 </h1>
 </div>
 
+<p><div class="info">
+See <a href="http://arquillian.org">Arquillian.org</a> for some great quickstart information on Arquillian itself.</div></p>
+
 <p>All the Aqruillian Adapters for TomEE support the following configuration options in the arquillian.xml:</p>
 
 <pre><code>&lt;container qualifier="tomee" default="true"&gt;
     &lt;configuration&gt;
         &lt;property name="httpPort"&gt;0&lt;/property&gt;
         &lt;property name="stopPort"&gt;0&lt;/property&gt;
-        &lt;property name="ajpPort"&gt;0&lt;/property&gt;
     &lt;/configuration&gt;
 &lt;/container&gt;
 </code></pre>
@@ -158,7 +160,6 @@
         &lt;systemPropertyVariables&gt;
           &lt;tomee.httpPort&gt;0&lt;/tomee.httpPort&gt;
           &lt;tomee.stopPort&gt;0&lt;/tomee.stopPort&gt;
-          &lt;tomee.ajpPort&gt;0&lt;/tomee.ajpPort&gt;
         &lt;/systemPropertyVariables&gt;
       &lt;/configuration&gt;
     &lt;/plugin&gt;
@@ -176,54 +177,50 @@
 
 <h1>TomEE Embedded Adapter</h1>
 
-<p>To use the TomEE Embedded Arquillian Adapter, simply add this dependency to your Arquillian setup</p>
+<p>The TomEE Embedded Adapter will boot TomEE right inside the testcase itself resulting in one JVM running both the application and the test case.
+This is generally much faster than the TomEE Remote Adapter and great for development.  That said, it is strongly recommended to also run all tests in a Continous Integration
+system using the TomEE Remote Adapter.</p>
+
+<p>To use the TomEE Embedded Arquillian Adapter, simply add this Maven dependency to your Arquillian setup:</p>
 
 <pre><code>&lt;dependency&gt;
   &lt;groupId&gt;org.apache.openejb&lt;/groupId&gt;
   &lt;artifactId&gt;arquillian-tomee-embedded&lt;/artifactId&gt;
-  &lt;version&gt;1.0.0-beta-3-SNAPSHOT&lt;/version&gt;
+  &lt;version&gt;1.0.0&lt;/version&gt;
 &lt;/dependency&gt;
 </code></pre>
 
-<h1>TomEE WebProfile Remote Adapter</h1>
+<p>As mentioned above the Embedded Adapter has the following properties which can be specified in the <code>arquillian.xml</code> file:</p>
 
-<pre><code>&lt;properties&gt;
-  &lt;tomee.version&gt;1.0.0-beta-3-SNAPSHOT&lt;/tomee.version&gt;
-&lt;/properties&gt;
-&lt;build&gt;
-  &lt;plugins&gt;
-    &lt;plugin&gt;
-      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
-      &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
-      &lt;configuration&gt;
-        &lt;systemPropertyVariables&gt;
-          &lt;tomee.classifier&gt;webprofile&lt;/tomee.classifier&gt;
-          &lt;tomee.version&gt;${tomee.version}&lt;/tomee.version&gt;
-        &lt;/systemPropertyVariables&gt;
-      &lt;/configuration&gt;
-    &lt;/plugin&gt;
-  &lt;/plugins&gt;
-&lt;/build&gt;
-&lt;dependencies&gt;
-  &lt;dependency&gt;
-    &lt;groupId&gt;org.apache.openejb&lt;/groupId&gt;
-    &lt;artifactId&gt;arquillian-tomee-remote&lt;/artifactId&gt;
-    &lt;version&gt;${tomee.version}&lt;/version&gt;
-  &lt;/dependency&gt;
-  &lt;dependency&gt;
-    &lt;groupId&gt;org.apache.openejb&lt;/groupId&gt;
-    &lt;artifactId&gt;apache-tomee&lt;/artifactId&gt;
-    &lt;version&gt;${tomee.version}&lt;/version&gt;
-    &lt;classifier&gt;webprofile&lt;/classifier&gt;
-    &lt;type&gt;zip&lt;/type&gt;
-  &lt;/dependency&gt;
-&lt;/dependencies&gt;
-</code></pre>
+<ul>
+<li><code>httpPort</code></li>
+<li><code>stopPort</code></li>
+</ul>
 
-<h1>TomEE+ (Plus) Remote Adapter</h1>
+<p>Or alternatively as System properties, possibly shared with other TomEE Arquillian Adapters:</p>
+
+<ul>
+<li><code>tomee.httpPort</code></li>
+<li><code>tomee.stopPort</code></li>
+</ul>
+
+<p>Or more specifically as a System properties only applicable to the Embedded Adapter:</p>
+
+<ul>
+<li><code>tomee.embedded.httpPort</code></li>
+<li><code>tomee.embedded.stopPort</code></li>
+</ul>
+
+<h1>TomEE Remote Adapter</h1>
+
+<p>The TomEE Remote Adapter will unzip and setup a TomEE or TomEE Plus distribution.  Once setup, the server will execute in a separate process.  This will be slower, but
+with the added benefit it is 100% match with the production system.</p>
+
+<p>The following shows a typical configuration for testing against TomEE (webprofile version).  The same can be done against TomEE+ by changing <code>&lt;tomee.classifier&gt;webprofile&lt;/tomee.classifier&gt;</code> to <code>&lt;tomee.classifier&gt;plus&lt;/tomee.classifier&gt;</code></p>
 
 <pre><code>&lt;properties&gt;
-  &lt;tomee.version&gt;1.0.0-beta-3-SNAPSHOT&lt;/tomee.version&gt;
+  &lt;tomee.version&gt;1.0.0&lt;/tomee.version&gt;
+  &lt;tomee.classifier&gt;webprofile&lt;/tomee.classifier&gt;
 &lt;/properties&gt;
 &lt;build&gt;
   &lt;plugins&gt;
@@ -232,7 +229,7 @@
       &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
       &lt;configuration&gt;
         &lt;systemPropertyVariables&gt;
-          &lt;tomee.classifier&gt;plus&lt;/tomee.classifier&gt;
+          &lt;tomee.classifier&gt;${tomee.classifier}&lt;/tomee.classifier&gt;
           &lt;tomee.version&gt;${tomee.version}&lt;/tomee.version&gt;
         &lt;/systemPropertyVariables&gt;
       &lt;/configuration&gt;
@@ -249,12 +246,43 @@
     &lt;groupId&gt;org.apache.openejb&lt;/groupId&gt;
     &lt;artifactId&gt;apache-tomee&lt;/artifactId&gt;
     &lt;version&gt;${tomee.version}&lt;/version&gt;
-    &lt;classifier&gt;plus&lt;/classifier&gt;
+    &lt;classifier&gt;${tomee.classifier}&lt;/classifier&gt;
     &lt;type&gt;zip&lt;/type&gt;
   &lt;/dependency&gt;
 &lt;/dependencies&gt;
 </code></pre>
 
+<p>The Remote Adapter has the following properties which can be specified in the <code>arquillian.xml</code> file:</p>
+
+<ul>
+<li><code>httpPort</code></li>
+<li><code>stopPort</code></li>
+<li><code>version</code></li>
+<li><code>classifier</code> (must be either <code>webprofile</code> or  <code>plus</code>)</li>
+</ul>
+
+<p>Or alternatively as System properties, possibly shared with other TomEE Arquillian Adapters:</p>
+
+<ul>
+<li><code>tomee.httpPort</code></li>
+<li><code>tomee.stopPort</code></li>
+<li><code>tomee.version</code></li>
+<li><code>tomee.classifier</code></li>
+</ul>
+
+<p>Or more specifically as a System properties only applicable to the Remote Adapter:</p>
+
+<ul>
+<li><code>tomee.remote.httpPort</code></li>
+<li><code>tomee.remote.stopPort</code></li>
+<li><code>tomee.remote.version</code></li>
+<li><code>tomee.remote.classifier</code></li>
+</ul>
+
+<h1>Maven Profiles</h1>
+
+<p>Setting up both adapters is quite easy via maven profiles.  Here the default adapter is the Embedded Adapter, the Remote Adapter will run with <code>-Parquillian-tomee-remote</code> specified as a <code>mvn</code> command argument.</p>
+