[jboss-cvs] jboss-docs/jbossas/j2ee/examples/src/main/org/jboss/naming ...

Norman Richards norman.richards at jboss.com
Wed Nov 1 13:14:22 EST 2006


  User: nrichards
  Date: 06/11/01 13:14:22

  Added:       jbossas/j2ee/examples/src/main/org/jboss/naming    
                        invoker-service.xml invoker-web.xml
                        jboss-service.xml server.xml
  Log:
  modified for j2ee guide
  
  Revision  Changes    Path
  1.1      date: 2006/11/01 18:14:22;  author: nrichards;  state: Exp;jboss-docs/jbossas/j2ee/examples/src/main/org/jboss/naming/invoker-service.xml
  
  Index: invoker-service.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE server>
  <!-- $Id: invoker-service.xml,v 1.1 2006/11/01 18:14:22 nrichards Exp $ -->
  
  <server>
  
    <!-- The HTTP invoker service configration
    -->
    <mbean code="org.jboss.invocation.http.server.HttpInvoker"
      name="jboss:service=invoker,type=http">
       <!-- Use a URL of the form http://<hostname>:8080/invoker/EJBInvokerServlet
        where <hostname> is InetAddress.getHostname value on which the server
        is running.
        -->
       <attribute name="InvokerURLPrefix">http://</attribute>
       <attribute name="InvokerURLSuffix">:8080/invoker/EJBInvokerServlet</attribute>
       <attribute name="UseHostName">true</attribute>
    </mbean>
  
     <!-- Expose the Naming service interface via HTTP -->
     <mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
        name="jboss:service=invoker,type=http,target=Naming">
        <!-- The Naming service we are proxying -->
        <attribute name="InvokerName">jboss:service=Naming</attribute>
        <!-- Compose the invoker URL from the cluster node address -->
        <attribute name="InvokerURLPrefix">http://</attribute>
        <attribute name="InvokerURLSuffix">:8080/invoker/JMXInvokerServlet</attribute>
        <attribute name="UseHostName">true</attribute>
        <attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
        <attribute name="JndiName"></attribute>
        <attribute name="ClientInterceptors">
            <interceptors>
               <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
               <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
               <interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
               <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
            </interceptors>
        </attribute>
     </mbean>
  
  
  
  
     <!-- Expose the Naming service interface via HTTP -->
     <mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
            name="jboss:service=invoker,type=https,target=Naming">
         <!-- The Naming service we are proxying -->
         <attribute name="InvokerName">jboss:service=Naming</attribute>
         <!-- Compose the invoker URL from the cluster node address -->
         <attribute name="InvokerURLPrefix">https://</attribute>
         <attribute name="InvokerURLSuffix">:8443/invoker/JMXInvokerServlet</attribute>
         <attribute name="UseHostName">true</attribute>
         <attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
         <attribute name="JndiName"></attribute>
         <attribute name="ClientInterceptors">
             <interceptors>
                 <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
                 <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
                 <interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
                 <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
             </interceptors>
         </attribute>
     </mbean>
  
  
  
     <!-- Expose the Naming service interface via clustered HTTP. This maps
     to the ReadOnlyJNDIFactory servlet URL
     -->
     <mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
        name="jboss:service=invoker,type=http,target=Naming,readonly=true">
        <attribute name="InvokerName">jboss:service=Naming</attribute>
        <attribute name="InvokerURLPrefix">http://</attribute>
        <attribute name="InvokerURLSuffix">:8080/invoker/readonly/JMXInvokerServlet</attribute>
        <attribute name="UseHostName">true</attribute>
        <attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
        <attribute name="JndiName"></attribute>
        <attribute name="ClientInterceptors">
            <interceptors>
               <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
               <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
               <interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
               <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
            </interceptors>
        </attribute>
     </mbean>
  </server>
  
  
  
  1.1      date: 2006/11/01 18:14:22;  author: nrichards;  state: Exp;jboss-docs/jbossas/j2ee/examples/src/main/org/jboss/naming/invoker-web.xml
  
  Index: invoker-web.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE web-app PUBLIC
     "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
     "http://java.sun.com/dtd/web-app_2_3.dtd">
  
  <!-- The http-invoker.sar/invoker.war web.xml descriptor
  $Id: invoker-web.xml,v 1.1 2006/11/01 18:14:22 nrichards Exp $
  -->
  <web-app>
      <filter>
        <filter-name>ReadOnlyAccessFilter</filter-name>
        <filter-class>org.jboss.invocation.http.servlet.ReadOnlyAccessFilter</filter-class>
        <init-param>
           <param-name>readOnlyContext</param-name>
           <param-value>readonly</param-value>
           <description>The top level JNDI context the filter will enforce
           read-only access on. If specified only Context.lookup operations
           will be allowed on this context. Another other operations or lookups
           on any other context will fail. Do not associate this filter with the
           JMXInvokerServlets if you want unrestricted access.
           </description>
        </init-param>
        <init-param>
           <param-name>invokerName</param-name>
           <param-value>jboss:service=Naming</param-value>
           <description>The JMX ObjectName of the naming service mbean
           </description>
        </init-param>
      </filter>
  
      <filter-mapping>
        <filter-name>ReadOnlyAccessFilter</filter-name>
        <url-pattern>/readonly/*</url-pattern>
      </filter-mapping>
  
  <!-- ### Servlets -->
      <servlet>
          <servlet-name>EJBInvokerServlet</servlet-name>
          <description>The EJBInvokerServlet receives posts containing serlized
          MarshalledInvocation objects that are routed to the EJB invoker given by
          the invokerName init-param. The return content is a serialized
          MarshalledValue containg the return value of the inovocation, or any
          exception that may have been thrown.
          </description>
          <servlet-class>org.jboss.invocation.http.servlet.InvokerServlet</servlet-class>
          <init-param>
              <param-name>invokerName</param-name>
              <param-value>jboss:service=invoker,type=http</param-value>
              <description>The RMI/HTTP EJB compatible invoker</description>
          </init-param>
          <load-on-startup>1</load-on-startup>
      </servlet>
     <servlet>
         <servlet-name>JMXInvokerServlet</servlet-name>
         <description>The JMXInvokerServlet receives posts containing serlized
         MarshalledInvocation objects that are routed to the invoker given by
         the the MBean whose object name hash is specified by the
         invocation.getObjectName() value. The return content is a serialized
         MarshalledValue containg the return value of the inovocation, or any
         exception that may have been thrown.
         </description>
         <servlet-class>org.jboss.invocation.http.servlet.InvokerServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
     </servlet>
  
      <servlet>
          <servlet-name>JNDIFactory</servlet-name>
          <description>A servlet that exposes the JBoss JNDI Naming service stub
          through http. The return content is a serialized
          MarshalledValue containg the org.jnp.interfaces.Naming stub. This
          configuration handles requests for the standard JNDI naming service.
          </description>
          <servlet-class>org.jboss.invocation.http.servlet.NamingFactoryServlet</servlet-class>
          <init-param>
              <param-name>namingProxyMBean</param-name>
              <param-value>jboss:service=invoker,type=http,target=Naming</param-value>
          </init-param>
        <init-param>
           <param-name>proxyAttribute</param-name>
           <param-value>Proxy</param-value>
        </init-param>
        <load-on-startup>2</load-on-startup>
      </servlet>
  
      <servlet>
          <servlet-name>JNDIFactorySSL</servlet-name>
          <description>A servlet that exposes the JBoss JNDI Naming
          service stub through http. The return content is a serialized
          MarshalledValue containg the org.jnp.interfaces.Naming
          stub. This configuration handles requests for the standard
          JNDI naming service.  </description>
          <servlet-class>org.jboss.invocation.http.servlet.NamingFactoryServlet</servlet-class>
          <init-param>
              <param-name>namingProxyMBean</param-name>
              <param-value>jboss:service=invoker,type=https,target=Naming</param-value>
          </init-param>
          <init-param>
              <param-name>proxyAttribute</param-name>
              <param-value>Proxy</param-value>
          </init-param>
          <load-on-startup>2</load-on-startup>
      </servlet>
  
  
     <servlet>
         <servlet-name>ReadOnlyJNDIFactory</servlet-name>
         <description>A servlet that exposes the JBoss JNDI Naming service stub
         through http, but only for a single read-only context. The return content
         is a serialized MarshalledValue containg the org.jnp.interfaces.Naming
         stub.
         </description>
         <servlet-class>org.jboss.invocation.http.servlet.NamingFactoryServlet</servlet-class>
        <init-param>
            <param-name>namingProxyMBean</param-name>
            <param-value>jboss:service=invoker,type=http,target=Naming,readonly=true</param-value>
        </init-param>
        <init-param>
           <param-name>proxyAttribute</param-name>
           <param-value>Proxy</param-value>
        </init-param>
         <load-on-startup>2</load-on-startup>
     </servlet>
  
  <!-- ### Servlet Mappings -->
      <servlet-mapping>
          <servlet-name>JNDIFactory</servlet-name>
          <url-pattern>/JNDIFactory/*</url-pattern>
      </servlet-mapping>
     <servlet-mapping>
         <servlet-name>JNDIFactorySSL</servlet-name>
         <url-pattern>/JNDIFactorySSL/*</url-pattern>
     </servlet-mapping>
  
  
  
  
      <!-- A mapping for the NamingFactoryServlet that only allows invocations
      of lookups under a read-only context. This is enforced by the
      ReadOnlyAccessFilter
      -->
      <servlet-mapping>
          <servlet-name>ReadOnlyJNDIFactory</servlet-name>
          <url-pattern>/ReadOnlyJNDIFactory/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
          <servlet-name>EJBInvokerServlet</servlet-name>
          <url-pattern>/EJBInvokerServlet/*</url-pattern>
      </servlet-mapping>
     <servlet-mapping>
         <servlet-name>JMXInvokerServlet</servlet-name>
         <url-pattern>/JMXInvokerServlet/*</url-pattern>
     </servlet-mapping>
      <!-- A mapping for the JMXInvokerServlet that only allows invocations
      of lookups under a read-only context. This is enforced by the
      ReadOnlyAccessFilter
      -->
      <servlet-mapping>
          <servlet-name>JMXInvokerServlet</servlet-name>
          <url-pattern>/readonly/JMXInvokerServlet/*</url-pattern>
      </servlet-mapping>
  
      <!-- Alternate mappings that place the servlets under the restricted
      path to required authentication for access. Remove the unsecure mappings
      if only authenticated users should be allowed.
      -->
      <servlet-mapping>
          <servlet-name>JNDIFactory</servlet-name>
          <url-pattern>/restricted/JNDIFactory/*</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
          <servlet-name>JMXInvokerServlet</servlet-name>
          <url-pattern>/restricted/JMXInvokerServlet/*</url-pattern>
      </servlet-mapping>
  
     <!-- An example security constraint that restricts access to the HTTP invoker
     to users with the role HttpInvoker Edit the roles to what you want and
     configure the WEB-INF/jboss-web.xml/security-domain element to reference
     the security domain you want.
     -->
     <security-constraint>
        <web-resource-collection>
           <web-resource-name>HttpInvokers</web-resource-name>
           <description>An example security config that only allows users with the
              role HttpInvoker to access the HTTP invoker servlets
           </description>
           <url-pattern>/restricted/*</url-pattern>
           <http-method>GET</http-method>
           <http-method>POST</http-method>
        </web-resource-collection>
        <auth-constraint>
           <role-name>HttpInvoker</role-name>
        </auth-constraint>
     </security-constraint>
     <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>JBoss HTTP Invoker</realm-name>
     </login-config>
  
     <security-role>
        <role-name>HttpInvoker</role-name>
     </security-role>
  </web-app>
  
  
  
  1.1      date: 2006/11/01 18:14:22;  author: nrichards;  state: Exp;jboss-docs/jbossas/j2ee/examples/src/main/org/jboss/naming/jboss-service.xml
  
  Index: jboss-service.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!-- $Id: jboss-service.xml,v 1.1 2006/11/01 18:14:22 nrichards Exp $ -->
  
  <!-- ===================================================================== -->
  <!--                                                                       -->
  <!--  JBoss Server Configuration                                           -->
  <!--                                                                       -->
  <!-- ===================================================================== -->
  
  <server>
  
    <!-- Load all jars from the JBOSS_DIST/server/<config>/lib directory. This
      can be restricted to specific jars by specifying them in the archives
      attribute.
     -->
    <classpath codebase="lib" archives="*"/>
  
    <!-- ==================================================================== -->
    <!-- Log4j Initialization                                                 -->
    <!-- ==================================================================== -->
  
    <mbean code="org.jboss.logging.Log4jService"
  	 name="jboss.system:type=Log4jService,service=Logging">
      <attribute name="ConfigurationURL">resource:log4j.xml</attribute>
    </mbean>
  
    <!-- ==================================================================== -->
    <!-- JBoss RMI Classloader - only install when available                  -->
    <!-- ==================================================================== -->
    <mbean code="org.jboss.util.property.jmx.SystemPropertyClassValue"
      name="jboss.rmi:type=RMIClassLoader">
      <attribute name="Property">java.rmi.server.RMIClassLoaderSpi</attribute>
      <attribute name="ClassName">org.jboss.system.JBossRMIClassLoader</attribute>
    </mbean>
  
  
    <!-- ==================================================================== -->
    <!-- Class Loading                                                        -->
    <!-- ==================================================================== -->
  
    <mbean code="org.jboss.web.WebService"
  	 name="jboss:service=WebService">
        <attribute name="Port">8083</attribute>
        <!-- Should resources and non-EJB classes be downloadable -->
        <attribute name="DownloadServerClasses">true</attribute>
        <attribute name="Host">${jboss.bind.address}</attribute>
        <attribute name="BindAddress">${jboss.bind.address}</attribute>
    </mbean>
  
  
    <!-- ==================================================================== -->
    <!-- JNDI                                                                 -->
    <!-- ==================================================================== -->
  
     <mbean code="org.jboss.naming.NamingService"
        name="jboss:service=Naming">
        <!-- The listening port for the bootstrap JNP service. Set this to -1
          to run the NamingService without the JNP invoker listening port.
        -->
        <attribute name="Port">1099</attribute>
        <!-- The bootstrap JNP server bind address. This also sets the default
        RMI service bind address. Empty == all addresses
         -->
        <attribute name="BindAddress">${jboss.bind.address}</attribute>
        <!-- The port of the RMI naming service, 0 == anonymous -->
        <attribute name="RmiPort">1098</attribute>
        <!-- The RMI service bind address. Empty == all addresses
         -->
        <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
     </mbean>
  
     <mbean code="org.jboss.naming.JNDIView" name="jboss:service=JNDIView">
     </mbean>
  
     <!-- ==================================================================== -->
     <!-- Security                                                             -->
     <!-- ==================================================================== -->
  
     <mbean code="org.jboss.security.plugins.SecurityConfig"
        name="jboss.security:name=SecurityConfig">
        <attribute name="LoginConfig">jboss.security:service=XMLLoginConfig</attribute>
     </mbean>
     <mbean code="org.jboss.security.auth.login.XMLLoginConfig"
        name="jboss.security:service=XMLLoginConfig">
        <attribute name="ConfigResource">login-config.xml</attribute>
     </mbean>
  
     <!-- JAAS security manager and realm mapping -->
     <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
        name="jboss.security:service=JaasSecurityManager">
        <attribute name="SecurityManagerClassName">
           org.jboss.security.plugins.JaasSecurityManager
        </attribute>
     </mbean>
  
     <!-- The SSL domain setup -->
     <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
        name="Security:name=JaasSecurityDomain,domain=RMI+SSL">
        <constructor>
           <arg type="java.lang.String" value="RMI+SSL"/>
        </constructor>
        <attribute name="KeyStoreURL">example.keystore</attribute>
        <attribute name="KeyStorePass">rmi+ssl</attribute>
     </mbean>
  
     <!-- ==================================================================== -->
     <!-- Transactions                                                         -->
     <!-- ==================================================================== -->
     <!-- The configurable Xid factory.  For use with Oracle, set pad to true -->
     <mbean code="org.jboss.tm.XidFactory"
        name="jboss:service=XidFactory">
        <!--attribute name="Pad">true</attribute-->
     </mbean>
  
     <!--
        | The fast in-memory transaction manager.
      -->
     <mbean code="org.jboss.tm.TransactionManagerService"
        name="jboss:service=TransactionManager">
        <attribute name="TransactionTimeout">300</attribute>
  
        <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
     </mbean>
  
     <!--
        | UserTransaction support.
      -->
     <mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService"
        name="jboss:service=ClientUserTransaction">
        <depends>
           <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
              name="jboss:service=proxyFactory,target=ClientUserTransactionFactory">
              <attribute name="InvokerName">jboss:service=invoker,type=jrmp</attribute>
              <attribute name="TargetName">jboss:service=ClientUserTransaction</attribute>
              <attribute name="JndiName">UserTransactionSessionFactory</attribute>
              <attribute name="ExportedInterface">org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory</attribute>
              <attribute name="ClientInterceptors">
                 <interceptors>
                    <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
                    <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
                 </interceptors>
              </attribute>
              <depends>jboss:service=invoker,type=jrmp</depends>
           </mbean>
        </depends>
        <depends optional-attribute-name="TxProxyName">
           <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
              name="jboss:service=proxyFactory,target=ClientUserTransaction">
              <attribute name="InvokerName">jboss:service=invoker,type=jrmp</attribute>
              <attribute name="TargetName">jboss:service=ClientUserTransaction</attribute>
              <attribute name="JndiName"></attribute>
              <attribute name="ExportedInterface">org.jboss.tm.usertx.interfaces.UserTransactionSession</attribute>
              <attribute name="ClientInterceptors">
                 <interceptors>
                    <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
                    <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
                 </interceptors>
              </attribute>
              <depends>jboss:service=invoker,type=jrmp</depends>
           </mbean>
        </depends>
  
     </mbean>
  
     <!-- ==================================================================== -->
     <!-- Invokers to the JMX node                                             -->
     <!-- ==================================================================== -->
  
     <!-- RMI/JRMP invoker -->
     <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker"
        name="jboss:service=invoker,type=jrmp">
        <attribute name="RMIObjectPort">4444</attribute>
        <attribute name="ServerAddress">${jboss.bind.address}</attribute>
        <!--
        <attribute name="RMIClientSocketFactory">custom</attribute>
        <attribute name="RMIServerSocketFactory">custom</attribute>
        <attribute name="SecurityDomain">ssl-domain-name</attribute>
        -->
        <depends>jboss:service=TransactionManager</depends>
     </mbean>
  
     <mbean code="org.jboss.invocation.local.LocalInvoker"
        name="jboss:service=invoker,type=local">
  
        <depends>jboss:service=TransactionManager</depends>
     </mbean>
  
     <!-- ==================================================================== -->
     <!-- The deployers...                                                     -->
     <!-- ==================================================================== -->
  
     <!-- EJB deployer, remove to disable EJB behavior-->
     <mbean code="org.jboss.ejb.EJBDeployer" name="jboss.ejb:service=EJBDeployer">
        <attribute name="VerifyDeployments">true</attribute>
        <attribute name="ValidateDTDs">false</attribute>
        <attribute name="MetricsEnabled">false</attribute>
        <attribute name="VerifierVerbose">true</attribute>
  
        <!--
            StrictVerifier: Setting this to 'true' will cause all deployments
            to fail when the Verifier detected a problem with the contained
            Beans.
        -->
        <attribute name="StrictVerifier">true</attribute>
  
        <depends optional-attribute-name="TransactionManagerServiceName">jboss:service=TransactionManager</depends>
        <depends optional-attribute-name="WebServiceName">jboss:service=WebService</depends>
     </mbean>
  
     <!-- EAR deployer, remove if you are not using Web layers -->
     <mbean code="org.jboss.deployment.EARDeployer" name="jboss.j2ee:service=EARDeployer">
     </mbean>
  
     <mbean code="org.jboss.varia.deployment.BeanShellSubDeployer"
        name="jboss.scripts:service=BSHDeployer">
     </mbean>
  
     <!-- ==================================================================== -->
     <!-- Monitoring and Management                                            -->
     <!-- ==================================================================== -->
  
     <!-- Uncomment to enable JMX monitoring of the bean cache
     <mbean code="org.jboss.monitor.BeanCacheMonitor"
            name="jboss.monitor:name=BeanCacheMonitor"/>
     -->
  
     <!-- Uncomment to enable JMX monitoring of the entity bean locking
     <mbean code="org.jboss.monitor.EntityLockMonitor"
            name="jboss.monitor:name=EntityLockMonitor"/>
     -->
  
     <!-- ==================================================================== -->
     <!-- Deployment Scanning                                                  -->
     <!-- ==================================================================== -->
  
     <!-- An mbean for hot deployment/undeployment of archives.
     -->
     <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
        name="jboss.deployment:type=DeploymentScanner,flavor=URL">
  
        <!-- Uncomment (and comment/remove version below) to enable usage of the
          DeploymentCache
        <depends optional-attribute-name="Deployer">jboss.deployment:type=DeploymentCache</depends>
        -->
        <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>
  
        <!-- The URLComparator can be used to specify a deployment ordering
             for deployments found in a scanned directory.  The class specified
             must be an implementation of java.util.Comparator, it must be able
             to compare two URL objects, and it must have a no-arg constructor.
             Two deployment comparators are shipped with JBoss:
               - org.jboss.deployment.DeploymentSorter
                 Sorts by file extension, as follows:
                   "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip",
                   "*"
               - org.jboss.deployment.scanner.PrefixDeploymentSorter
                 If the name portion of the url begins with 1 or more digits, those
                 digits are converted to an int (ignoring leading zeroes), and
                 files are deployed in that order.  Files that do not start with
                 any digits will be deployed first, and they will be sorted by
                 extension as above with DeploymentSorter.
        -->
        <attribute name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>
        <!--
        <attribute name="URLComparator">org.jboss.deployment.scanner.PrefixDeploymentSorter</attribute>
        -->
  
        <!-- The Filter specifies a java.io.FileFilter for scanned
             directories.  Any file not accepted by this filter will not be
             deployed.  The org.jboss.deployment.scanner.DeploymentFilter
             rejects the following patterns:
                 "#*", "%*", ",*", ".*", "_$*", "*#", "*$", "*%", "*.BAK",
                 "*.old", "*.orig", "*.rej", "*.bak", "*,v", "*~", ".make.state",
                 ".nse_depinfo", "CVS", "CVS.admin", "RCS", "RCSLOG", "SCCS",
                 "TAGS", "core", "tags"
        -->
        <attribute name="Filter">org.jboss.deployment.scanner.DeploymentFilter</attribute>
  
        <attribute name="ScanPeriod">5000</attribute>
  
        <!-- URLs are comma separated and resolve relative to the server home URL
           unless the given path is absolute. If the URL ends in "/" it is
           considered a collection and scanned, otherwise it is simply deployed;
           this follows RFC2518 convention and allows discrimination between
           collections and directories that are simply unpacked archives.
  
           URLs may be local (file:) or remote (http:). Scanning is supported
           for remote URLs but unpacked deployment units are not.
  
           Example URLs:
              deploy/
                   scans ${jboss.server.url}/deploy/, which is local or remote
                   depending on the URL used to boot the server
              ${jboss.server.home}/deploy/
                   scans ${jboss.server.home)/deploy, which is always local
              file:/var/opt/myapp.ear
                   deploy myapp.ear from a local location
              file:/var/opt/apps/
                   scans the specified directory
              http://www.test.com/netboot/myapp.ear
                   deploys myapp.ear from a remote location
              http://www.test.com/netboot/apps/
                   scans the specified WebDAV location
         -->
        <attribute name="URLs">
           deploy/
        </attribute>
  
        <!-- Indicates if the scanner should recursively scan directories that
        contain no "." in their names. This can be used to group applications
        and services that must be deployed and that have the same
        logical function in the same directory i.e.
          deploy/JMX/amples]$
          deploy/JMS/
          ...
        -->
  
        <attribute name="RecursiveSearch">True</attribute>
  
     </mbean>
  
  </server>
  
   
  
  
  
  1.1      date: 2006/11/01 18:14:22;  author: nrichards;  state: Exp;jboss-docs/jbossas/j2ee/examples/src/main/org/jboss/naming/server.xml
  
  Index: server.xml
  ===================================================================
  <Server>
  
     <!-- Use a custom version of StandardService that allows the
     connectors to be started independent of the normal lifecycle
     start to allow web apps to be deployed before starting the
     connectors.
     -->
     <Service name="jboss.web"
        className="org.jboss.web.tomcat.tc5.StandardService">
  
        <!-- A HTTP/1.1 Connector on port 8080 -->
        <Connector port="8080" address="${jboss.bind.address}"
           maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
           emptySessionPath="true"
           enableLookups="false" redirectPort="8443" acceptCount="100"
           connectionTimeout="20000" disableUploadTimeout="true"/>
  
        <!-- A AJP 1.3 Connector on port 8009 -->
        <Connector port="8009" address="${jboss.bind.address}"
           emptySessionPath="true" enableLookups="false" redirectPort="8443" 
           protocol="AJP/1.3"/>
  
        <Connector port="8443" address="${jboss.bind.address}"
             maxThreads="100" minSpareThreads="5" maxSpareThreads="15"
             scheme="https" secure="true" clientAuth="false"
             keystoreFile="${jboss.server.home.dir}/conf/example.keystore"
             keystorePass="rmi+ssl" sslProtocol = "TLS" />
  
        <!-- securityDomainName = "java:/jaas/RMI+SSL"   -->
  
        <Engine name="jboss.web" defaultHost="localhost">
  
           <!-- The JAAS based authentication and authorization realm implementation
           that is compatible with the jboss 3.2.x realm implementation.
           - certificatePrincipal : the class name of the
           org.jboss.security.auth.certs.CertificatePrincipal impl
           used for mapping X509[] cert chains to a Princpal.
           -->
           <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
              certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
              />
           <!-- A subclass of JBossSecurityMgrRealm that uses the authentication
           behavior of JBossSecurityMgrRealm, but overrides the authorization
           checks to use JACC permissions with the current java.security.Policy
           to determine authorized access.
           <Realm className="org.jboss.web.tomcat.security.JaccAuthorizationRealm"
              certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
              />
           -->
  
           <Host name="localhost"
              autoDeploy="false" deployOnStartup="false" deployXML="false">
  
              <!-- Uncomment to enable request dumper. This Valve "logs interesting 
                   contents from the specified Request (before processing) and the 
                   corresponding Response (after processing). It is especially useful 
                   in debugging problems related to headers and cookies."
              -->
              <!--
              <Valve className="org.apache.catalina.valves.RequestDumperValve" />
              -->
   
              <!-- Access logger -->
              <!--
              <Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
                  prefix="localhost_access_log." suffix=".log"
                  pattern="common" directory="${jboss.server.home.dir}/log" 
                  resolveHosts="false" />
              -->
  
              <!-- Uncomment to enable single sign-on across web apps
                  deployed to this host. Does not provide SSO across a cluster.     
              
                  If this valve is used, do not use the JBoss ClusteredSingleSignOn 
                  valve shown below. 
               -->
              <!--
              <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
              -->
  
              <!-- Uncomment to enable single sign-on across web apps
                 deployed to this host AND to all other hosts in the cluster
                 with the same virtual hostname.
              
                 If this valve is used, do not use the standard Tomcat SingleSignOn
                 valve shown above.
              
                 This valve uses JGroups to communicate across the cluster.  The 
                 JGroups Channel used for this communication can be configured
                 by editing the "sso-channel.xml" file found in the same folder
                 as this file.  If this valve is running on a machine with multiple
                 IP addresses, configuring the "bind_addr" property of the JGroups
                 UDP protocol may be necessary.  Another possible configuration 
                 change would be to enable encryption of intra-cluster communications.
                 See the sso-channel.xml file for more details.
              
                 Besides the attributes supported by the standard Tomcat
                 SingleSignOn valve (see the Tomcat docs), this version also supports 
                 the following attribute:
              
                 partitionName     the name of the cluster partition in which 
                                   this node participates.  If not set, the default
                                   value is "sso-partition/" + the value of the
                                   "name" attribute of the Host element that
                                   encloses this element (e.g. "sso-partition/localhost")
              -->
              <!--
              <Valve className="org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn" />
              -->
           
              <!-- Uncomment to check for unclosed connections and transaction terminated checks
                   in servlets/jsps.
                   Important: You need to uncomment the dependency on the CachedConnectionManager
                              in META-INF/jboss-service.xml
              <Valve className="org.jboss.web.tomcat.tc5.jca.CachedConnectionValve"
                  cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
                  transactionManagerObjectName="jboss:service=TransactionManager" />
              -->
  
           </Host>
  
        </Engine>
  
     </Service>
  
  </Server>
  
  
  



More information about the jboss-cvs-commits mailing list