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><container qualifier="tomee" default="true">
<configuration>
<property name="httpPort">0</property>
<property name="stopPort">0</property>
- <property name="ajpPort">0</property>
</configuration>
</container>
</code></pre>
@@ -158,7 +160,6 @@
<systemPropertyVariables>
<tomee.httpPort>0</tomee.httpPort>
<tomee.stopPort>0</tomee.stopPort>
- <tomee.ajpPort>0</tomee.ajpPort>
</systemPropertyVariables>
</configuration>
</plugin>
@@ -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><dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>arquillian-tomee-embedded</artifactId>
- <version>1.0.0-beta-3-SNAPSHOT</version>
+ <version>1.0.0</version>
</dependency>
</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><properties>
- <tomee.version>1.0.0-beta-3-SNAPSHOT</tomee.version>
-</properties>
-<build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <systemPropertyVariables>
- <tomee.classifier>webprofile</tomee.classifier>
- <tomee.version>${tomee.version}</tomee.version>
- </systemPropertyVariables>
- </configuration>
- </plugin>
- </plugins>
-</build>
-<dependencies>
- <dependency>
- <groupId>org.apache.openejb</groupId>
- <artifactId>arquillian-tomee-remote</artifactId>
- <version>${tomee.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.openejb</groupId>
- <artifactId>apache-tomee</artifactId>
- <version>${tomee.version}</version>
- <classifier>webprofile</classifier>
- <type>zip</type>
- </dependency>
-</dependencies>
-</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><tomee.classifier>webprofile</tomee.classifier></code> to <code><tomee.classifier>plus</tomee.classifier></code></p>
<pre><code><properties>
- <tomee.version>1.0.0-beta-3-SNAPSHOT</tomee.version>
+ <tomee.version>1.0.0</tomee.version>
+ <tomee.classifier>webprofile</tomee.classifier>
</properties>
<build>
<plugins>
@@ -232,7 +229,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
- <tomee.classifier>plus</tomee.classifier>
+ <tomee.classifier>${tomee.classifier}</tomee.classifier>
<tomee.version>${tomee.version}</tomee.version>
</systemPropertyVariables>
</configuration>
@@ -249,12 +246,43 @@
<groupId>org.apache.openejb</groupId>
<artifactId>apache-tomee</artifactId>
<version>${tomee.version}</version>
- <classifier>plus</classifier>
+ <classifier>${tomee.classifier}</classifier>
<type>zip</type>
</dependency>
</dependencies>
</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>
+