Author: buildbot
Date: Tue Feb 4 21:23:12 2014
New Revision: 896438
Log:
Staging update by buildbot for openwebbeans
Modified:
websites/staging/openwebbeans/trunk/content/ (props changed)
websites/staging/openwebbeans/trunk/content/owbconfig.html
Propchange: websites/staging/openwebbeans/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Feb 4 21:23:12 2014
@@ -1 +1 @@
-1564497
+1564504
Modified: websites/staging/openwebbeans/trunk/content/owbconfig.html
==============================================================================
--- websites/staging/openwebbeans/trunk/content/owbconfig.html (original)
+++ websites/staging/openwebbeans/trunk/content/owbconfig.html Tue Feb 4
21:23:12 2014
@@ -74,65 +74,32 @@
<div id="OwbContent_" class="wiki-content">
-<h1 id="openwebbeans-and-javase">OpenWebBeans and JavaSE</h1>
-<p>To add OpenWebBeans to your javaSE project you need to take the following
steps:</p>
-<ol>
-<li>Add required jars to your project</li>
-<li>Bootstrap OpenWebBeans</li>
-<li>Done! Congratulations.</li>
-</ol>
-<h3 id="adding-required-jars-to-your-project">Adding required jars to your
project</h3>
-<p>You can add OpenWebBeans to your project manually by adding jars or with
Apache Maven.
-How to download is explained here: <a
href="/openwebbeans/download.html">download page</a>.</p>
-<p>For JavaSE you need:</p>
-<ul>
-<li><strong>openwebbeans-spi.jar</strong></li>
-<li><strong>openwebbeans-impl.jar</strong></li>
-</ul>
-<p>Those two parts of OpenWebBeans are what you could call "system core".
-These are the only OWB artifacts you need for JavaSE capabilities and
-for the time being the existing plugins basically just adds JavaEE
capabilities. </p>
-<p>You also need to add some spec API jars for the CDI, atinject and
interceptors
-specifications.</p>
-<ul>
-<li><strong>geronimo-jcdi_1.0_spec.jar</strong></li>
-<li><strong>geronimo-atinject_1.0_spec.jar</strong></li>
-<li><strong>geronimo-interceptor_1.1_spec.jar</strong></li>
-</ul>
-<p>After you have added the jars described above to your project accordingly
-to the download page and added them to your projects classpath.</p>
-<h3 id="bootstrapping-openwebbeans">Bootstrapping OpenWebBeans</h3>
-<p>For now we recommend two ways for booting up the OpenWebBeans container:
-<a
href="http://deltaspike.apache.org/documentation.html#with-java-se"><strong>Deltaspike
CdiCtrl</strong></a> or booting it yourself in i.e. a standard main method.
</p>
-<h4 id="option-number-one-apache-deltaspike-cdictrl">Option number one -
Apache DeltaSpike CdiCtrl</h4>
-<p>Apache DeltaSpike is a set of portable CDI Extensions. It contains a module
which allows
-to control various CDI-Containers without having to change your own code. It
contains an API
-and multiple implementations for a few CDI Containers.</p>
-<p>For most projects <a
href="http://deltaspike.apache.org/documentation.html#with-java-se"><strong>Deltaspike
CdiCtrl</strong></a> will be the smoother choice to boot your project
-in JavaSE . </p>
-<h4 id="option-number-two-booting-yourself">Option number two - booting
yourself**</h4>
-<p>Going native and booting Apache OpenWebBeans yourself could however be
useful if you need full control
-to do advanced things. </p>
-<div class="codehilite"><pre><span class="kn">import</span> <span
class="nn">org.apache.deltaspike.cdise.api.CdiContainer</span><span
class="o">;</span>
-<span class="kn">import</span> <span
class="nn">org.apache.deltaspike.cdise.api.CdiContainerLoader</span><span
class="o">;</span>
-<span class="kn">import</span> <span
class="nn">org.apache.deltaspike.cdise.api.ContextControl</span><span
class="o">;</span>
-<span class="kn">import</span> <span
class="nn">javax.enterprise.context.ApplicationScoped</span><span
class="o">;</span>
-
-<span class="kd">public</span> <span class="kd">class</span> <span
class="nc">MainApp</span> <span class="o">{</span>
- <span class="kd">private</span> <span class="kd">static</span> <span
class="n">ContainerLifecycle</span> <span class="n">lifecycle</span> <span
class="o">=</span> <span class="kc">null</span><span class="o">;</span>
- <span class="kd">public</span> <span class="kd">static</span> <span
class="kt">void</span> <span class="nf">main</span><span
class="o">(</span><span class="n">String</span><span class="o">[]</span> <span
class="n">args</span><span class="o">)</span> <span class="o">{</span>
- <span class="n">lifecycle</span> <span class="o">=</span> <span
class="n">WebBeansContext</span><span class="o">.</span><span
class="na">currentInstance</span><span class="o">().</span><span
class="na">getService</span><span class="o">(</span><span
class="n">ContainerLifecycle</span><span class="o">.</span><span
class="na">class</span><span class="o">);</span>
- <span class="n">lifecycle</span><span class="o">.</span><span
class="na">startApplication</span><span class="o">(</span><span
class="kc">null</span><span class="o">);</span>
- <span class="o">}</span>
-
- <span class="kd">public</span> <span class="kd">static</span> <span
class="kt">void</span> <span class="nf">shutdown</span><span
class="o">()</span> <span class="o">{</span>
- <span class="n">lifecycle</span><span class="o">.</span><span
class="na">stopApplication</span><span class="o">(</span><span
class="kc">null</span><span class="o">);</span>
- <span class="o">}</span>
-<span class="o">}</span>
+<h1 id="openwebbeans-configuration">OpenWebBeans Configuration</h1>
+<p>Internal configuration of OpenWebBeans can be done via:
src/main/resources/META-INF/openwebbeans/openwebbeans.properties</p>
+<p>All those files contain at single property
<code>configuration.ordinal</code> which defines their
+'importance'. Any setting from a property file with a higher
configuration.ordinal will
+overwrite settings from one with a lower configuration.ordinal. The internally
used
+configuration.ordinal values range from 1 to 100.</p>
+<h3 id="enable-failover-session-replication-support">Enable FailOver / Session
Replication support</h3>
+<h4 id="since-120">Since 1.2.0</h4>
+<h4 id="before-120">Before 1.2.0</h4>
+<p>Add the following properties in your openwebbeans.properties</p>
+<div class="codehilite"><pre><span class="n">configuration</span><span
class="p">.</span><span class="n">ordinal</span><span class="p">=</span>100
+<span class="n">org</span><span class="p">.</span><span
class="n">apache</span><span class="p">.</span><span
class="n">webbeans</span><span class="p">.</span><span
class="n">web</span><span class="p">.</span><span
class="n">failover</span><span class="p">.</span><span
class="n">issupportfailover</span><span class="p">=</span><span
class="n">true</span>
+<span class="n">org</span><span class="p">.</span><span
class="n">apache</span><span class="p">.</span><span
class="n">webbeans</span><span class="p">.</span><span
class="n">web</span><span class="p">.</span><span
class="n">failover</span><span class="p">.</span><span
class="n">issupportpassivation</span><span class="p">=</span><span
class="n">true</span>
</pre></div>
-<p>From here you might want to look at our samples selection: <a
href="/openwebbeans/samples.html">samples</a>.</p>
+<p>Register the FailOverFilter in your web.xml</p>
+<div class="codehilite"><pre> <span class="nt"><filter></span>
+ <span class="nt"><filter-name></span>OWB FailOverFilter<span
class="nt"></filter-name></span>
+ <span
class="nt"><filter-class></span>org.apache.webbeans.web.failover.FailOverFilter<span
class="nt"></filter-class></span>
+ <span class="nt"></filter></span>
+ <span class="nt"><filter-mapping></span>
+ <span class="nt"><filter-name></span>OWB FailOverFilter<span
class="nt"></filter-name></span>
+ <span class="nt"><servlet-name></span>Faces Servlet<span
class="nt"></servlet-name></span>
+ <span class="nt"></filter-mapping></span>
+</pre></div>
</div>
<hr>