You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ta...@apache.org on 2014/02/04 22:23:09 UTC

svn commit: r1564504 - /openwebbeans/cms-site/trunk/content/owbconfig.mdtext

Author: tandraschko
Date: Tue Feb  4 21:23:08 2014
New Revision: 1564504

URL: http://svn.apache.org/r1564504
Log:
added config section

Modified:
    openwebbeans/cms-site/trunk/content/owbconfig.mdtext

Modified: openwebbeans/cms-site/trunk/content/owbconfig.mdtext
URL: http://svn.apache.org/viewvc/openwebbeans/cms-site/trunk/content/owbconfig.mdtext?rev=1564504&r1=1564503&r2=1564504&view=diff
==============================================================================
--- openwebbeans/cms-site/trunk/content/owbconfig.mdtext (original)
+++ openwebbeans/cms-site/trunk/content/owbconfig.mdtext Tue Feb  4 21:23:08 2014
@@ -16,85 +16,35 @@ Notice:    Licensed to the Apache Softwa
            specific language governing permissions and limitations
            under the License.
 
-# OpenWebBeans and JavaSE
+# OpenWebBeans Configuration
+Internal configuration of OpenWebBeans can be done via: src/main/resources/META-INF/openwebbeans/openwebbeans.properties
 
-To add OpenWebBeans to your javaSE project you need to take the following steps:
+All those files contain at single property ``configuration.ordinal`` 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.
 
- 1. Add required jars to your project
- 2. Bootstrap OpenWebBeans
- 3. Done! Congratulations.
 
+###Enable FailOver / Session Replication support
 
-###Adding required jars to your project
+#### Since 1.2.0
 
-You can add OpenWebBeans to your project manually by adding jars or with Apache Maven. 
-How to download is explained here: [download page][1].
+#### Before 1.2.0
 
+Add the following properties in your openwebbeans.properties
 
-For JavaSE you need:
+    configuration.ordinal=100 
+    org.apache.webbeans.web.failover.issupportfailover=true
+    org.apache.webbeans.web.failover.issupportpassivation=true
 
-  - **openwebbeans-spi.jar**
-  - **openwebbeans-impl.jar**
 
-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. 
+Register the FailOverFilter in your web.xml
 
-
-You also need to add some spec API jars for the CDI, atinject and interceptors 
-specifications.
-
-  - **geronimo-jcdi_1.0_spec.jar**
-  - **geronimo-atinject_1.0_spec.jar**
-  - **geronimo-interceptor_1.1_spec.jar**
-
- 
-After you have added the jars described above to your project accordingly 
-to the download page and added them to your projects classpath.
-
-###Bootstrapping OpenWebBeans
-
-For now we recommend two ways for booting up the OpenWebBeans container: 
-[**Deltaspike CdiCtrl**][2] or booting it yourself in i.e. a standard main method. 
-
-#### Option number one - Apache DeltaSpike CdiCtrl
-
-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.
-
-For most projects [**Deltaspike CdiCtrl**][2] will be the smoother choice to boot your project
-in JavaSE . 
-
-
-#### Option number two - booting yourself**
-
-Going native and booting Apache OpenWebBeans yourself could however be useful if you need full control 
-to do advanced things. 
-
-    :::java
-    import org.apache.deltaspike.cdise.api.CdiContainer;
-    import org.apache.deltaspike.cdise.api.CdiContainerLoader;
-    import org.apache.deltaspike.cdise.api.ContextControl;
-    import javax.enterprise.context.ApplicationScoped;
-
-    public class MainApp {
-        private static ContainerLifecycle lifecycle = null;
-        public static void main(String[] args) {
-            lifecycle = WebBeansContext.currentInstance().getService(ContainerLifecycle.class);
-            lifecycle.startApplication(null);
-        }
-
-        public static void shutdown() {
-            lifecycle.stopApplication(null);
-        }
-    }
-
-
-
-From here you might want to look at our samples selection: [samples][3].
-
-
-  [1]: /openwebbeans/download.html
-  [2]: http://deltaspike.apache.org/documentation.html#with-java-se
-  [3]: /openwebbeans/samples.html
\ No newline at end of file
+        <filter>
+                <filter-name>OWB FailOverFilter</filter-name>
+                <filter-class>org.apache.webbeans.web.failover.FailOverFilter</filter-class>
+        </filter>
+        <filter-mapping>
+                <filter-name>OWB FailOverFilter</filter-name>
+                <servlet-name>Faces Servlet</servlet-name>
+        </filter-mapping>