3 Replies Latest reply on Mar 17, 2005 4:53 AM by balteo

    URLComparator and Filter config in jboss-service.xml

    balteo

      Hello,
      I am wondering how to disable hot deployment for *.zip files using URLComparator or Filter. Can anyone please give me a sample code to put into the jboss-service.xml?
      Thanks in advance,
      Julien.

        • 1. Re: URLComparator and Filter config in jboss-service.xml
          balteo

          Hello,
          I figured out from jboss source code that all files whatever their extension are deployed except the extensions listed in the DeploymentFilter class (see DEFAULT_SUFFIXES constant). My question is now: do I need to recompile the file in order to exclude a specific extension or is there a way to do it by configuration??
          Julien.

          • 2. Re: URLComparator and Filter config in jboss-service.xml
            starksm64

            4.0.2RC1 externalized the filter settings:

             <!-- The FilterInstance specifies a URLLister.URLFilter for scanned
             directories. This DeploymentFilter is initialized with the given
             prefixes, suffixes and matches that define which URLs should be
             ignored.
             -->
             <attribute name="FilterInstance"
             attributeClass="org.jboss.deployment.scanner.DeploymentFilter"
             serialDataType="javaBean">
             <!-- Files starting with theses strings are ignored -->
             <property name="prefixes">#,%,\,,.,_$</property>
             <!-- Files ending with theses strings are ignored -->
             <property name="suffixes">#,$,%,.BAK,.old,.orig,.rej,.bak,.sh,\,v,~</property>
             <!-- Files matching with theses strings are ignored -->
             <property name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property>
             </attribute>
            



            • 3. Re: URLComparator and Filter config in jboss-service.xml
              balteo

              Thanks Scott,
              Excellent feature!
              Julien.