Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
1.1.4
-
None
Description
Currently a user needs to activate OWB failover in an META-INF/openwebbeans/openwebbeans.properties file with the following content:
org.apache.webbeans.web.failover.issupportfailover=true
This is suboptimal as the decision to use failover is usually a deployment question. Thus we should switch to enabling this feature in the container via a JNDI property.
The openwebbeans-tomcat6 and openwebbeans-tomcat7 (and also TomEE) ContextLifecycleListener could then add the required FailOverFilter automatically.
This can be done via context.addFilterDef and context.addFilterMap. The Filter should get added on the first position, probably by getting the existing filters with context.findFilterDefs() and do a context.addFilterMapBefore();