Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-671

Automatically register FailOverFilter if failover is activated

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1.4
    • 1.2.0
    • Java EE Integration
    • 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();

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: