⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resin-tags.xtp

📁 RESIN 3.2 最新源码
💻 XTP
📖 第 1 页 / 共 2 页
字号:
<document><header>  <product>resin</product>  <title>resin.xml: top-level configuration</title>  <version>Resin 3.0</version>  <description>  <p>The top-level &lt;resin> tag contains any&lt;<a href="cluster-tags.xtp">cluster</a>&gt; defined for a deployment.It also provides an <a href="env-tags.xtp">resources</a> forclass-loaders, logging and shared resources.</p>  </description></header><body><localtoc/><s1 title="See Also"><ul><li>See the <a href="index-tags.xtp">index</a> for a list of all the tags.</li><li>See <a href="server-tags.xtp">Server tags</a> for JVM-specific configuration like thread-max, JVM settings, ports, etc.</li><li>See <a href="webapp-tags.xtp">Web Application</a> configuration for web.xml (Servlet) configuration.</li><li>See <a href="config-env.xtp">Resource</a> configuration: classloader, databases, connectors, and beans.</li><li>See <a href="config-log.xtp">Log</a> configuration for access log configuration, java.util.logging, and stdout/stderr logging.</li></ul></s1><defun title="&lt;cluster>" version="Resin 3.0"><parents>resin</parents><p>&lt;cluster> configures a set of servers used for load-balancing and forsharing distributed sessions.</p><ul><li>See <a href="cluster-tags">&lt;cluster> tags</a> for more detailsabout the cluster contents.</li><li>See <a href="server-tags">&lt;server> tags</a> for more detailsabout the server contents.</li></ul><example>&lt;resin xmlns="http://caucho.com/ns/resin">  &lt;cluster id="app-tier"&gt;    &lt;server id="a" address="192.168.0.1"/>    &lt;server id="b" address="192.168.0.2"/>    &lt;host id="">      &lt;web-app-deploy path="webapps"/>    &lt;/host>  &lt;/cluster&gt;&lt;/resin&gt;</example><deftable title="&lt;cluster> Attributes"><tr>  <th>Attribute</th>  <th>Description</th>  <th>Default</th></tr><tr>  <td>id</td>  <td>Name of the cluster</td>  <td>required</td></tr></deftable></defun><defun title="&lt;cluster-default>" version="Resin 3.1"><parents>resin</parents><p>&lt;cluster-default> configures common configuration for allclusters.</p></defun><defun title="&lt;environment-system-properties>"><default>true</default><p>By default, Resin's <code>System.getProperties()</code> isenvironment-dependent, so the settings in on web-app do not affect theproperties in any other web-app.  Some sites may need to disablethis virtualization capability, when using certain JVM agents.</p><def title="&lt;environment-system-properties> schema">element environment-system-properties {  r_boolean-Type}</def></defun><defun title="&lt;jmx-service>"><p>&lt;jmx-service> enables the clustered JMX management.</p><def title="&lt;jmx-service> schema">element jmx-service {  enable?}</def></defun><defun title="&lt;log-service>"><p>&lt;log-service> enables persistent storage of warning and criticallog messages in the administration.</p><def title="&lt;log-service> schema">element log-service {  enable?  &amp; level?}</def></defun><defun title="&lt;management>" version="Resin 3.0"><p>&lt;management> controls system-wide management capabilities, likethe clustered JMX reporting, transaction logging, and persistence logging.It also defines a system-wide administration authenticator, providing acentralized place to manage administration identity.</p><p>The &lt;user> configuration is particularly important since it is usedas a security measure for the <a href="resin-watchdog.xtp">watchdog</a>as well as for remote JMX capabilities.</p><deftable title="&lt;management> Attributes"><tr>  <th>Attribute</th>  <th>Description</th></tr><tr>  <td>jmx-service</td>  <td>enables the remote JMX administration (Resin-Pro)</td></tr><tr>  <td>log-service</td>  <td>enables persistent log management (Resin-Pro)</td></tr><tr>  <td>path</td>  <td>configures the directory for storing management data</td></tr><tr>  <td>user</td>  <td>configures system-wide administration accounts</td></tr><tr>  <td>xa-log-service</td>  <td>enables XA logging (Resin-Pro)</td></tr></deftable><def title="&lt;management> schema">element management {  jmx-service?  &amp; log-service?  &amp; path  &amp; secure?  &amp; user*}element user {  name  &amp; password  &amp; disable?}</def><s2 title="user"><p>The &lt;user> tags in &lt;management> define Resin administrators forthe /resin-admin service and also add security for JMX remoting and thewatchdog.</p><p>Since the authenticator is available to all web-apps, you canuse the &lt;management> login as a simple security authenticator forthe entire site.  The role of the logged-in user is <var>resin-admin</var>,for configuring security authentication and for the <code>isUserInRole</code>method.</p><p>The password field is an MD5 hash of the username and password for security.The /resin-admin or <code>PasswordDigest</code> can be used to create thehash.  See <a href="resin-security.xtp">Resin security</a> for moreinformation.</p><deftable title="&lt;user> Attributes"><tr>  <th>Attribute</th>  <th>Description</th>  <th>Default</th></tr><tr>  <td>name</td>  <td>The user's name</td>  <td>required</td></tr><tr>  <td>password</td>  <td>An MD5 hash of the username and password.  The /resin-admin pageprovides an easy way of generating the hash.</td>  <td>required</td></tr><tr>  <td>disable</td>  <td>disable the user from logging in</td>  <td>false</td></tr></deftable><def title="&lt;user> schema">element user {  name  &amp; password  &amp; disable?}</def></s2></defun><defun title="&lt;resin>" version="Resin 3.0">      <p>&lt;resin> is the top-level configuration tag forthe resin.xml file.  The &lt;resin&gt;tag needs to specify the Resin namespace, to allow for validationof the configuration file.</p><p>The environment of the top-level &lt;resin&gt; is the global classpath.This environment can be important for &lt;log&gt; configurationfor threads which run with using only the global class loader.Because the &lt;resin&gt; environment does not have a dynamic class loader,dynamically loaded classes, like custom jarsin resin/lib are not available.</p><def title="&lt;resin> schema">element resin {  <var>env resources</var>  &amp; cluster*  &amp; cluster-default*  &amp; environment-system-properties?  &amp; management?  &amp; min-free-memory?  &amp; root-directory?  &amp; security-manager?  &amp; security-provider?  &amp; watchdog-manager?}</def><example title="Example: minimal resin.xml">&lt;resin xmlns="http://caucho.com/ns/resin"       xmlns:resin="http://caucho.com/ns/resin/core">  &lt;root-directory>/var/www&lt;/root-directory>  &lt;cluster id="web-tier"&gt;    &lt;server id="">      &lt;http address="*" port="8080"/&gt;    &lt;/server>    &lt;resin:import path="app-default.xml"/&gt;    &lt;host id="">      &lt;web-app id="" root-directory="/var/www/htdocs"/&gt;    &lt;/host&gt;  &lt;/cluster&gt;&lt;/resin&gt;</example></defun><defun title="Resources" version="Resin 3.1"><parents>resin, cluster, host, web-app</parents><p>All <a href="env-tags.xtp">Resource tags</a> areavailable to the &lt;host&gt;, for example, resourceslike &lt;database&gt; or &lt;authenticator>.  Resources defined atthe host level are available for all web-apps in the host.</p><example title="Example: shared database in resin">&lt;resin xmlns="http://caucho.com/ns/resin"&gt;  &lt;database jndi-name="jdbc/test"&gt;    &lt;driver type="org.postgresql.Driver"&gt;      &lt;url&gt;jdbc:postgresql://localhost/test&lt;/url&gt;      &lt;user&gt;caucho&lt;/user&gt;    &lt;/driver&gt;  &lt;/database&gt;  &lt;cluster id="app-tier"&gt;     ...  &lt;/cluster&gt;&lt;/resin&gt;</example></defun><defun title="&lt;root-directory>" version="Resin 3.0"><parents>resin, cluster, host, web-app</parents><p>&lt;root-directory> specifies the base directoryfor the contexts. All EL-style directory paths are relative tothe root-directory.</p><def title="&lt;root-directory> schema">element root-directory {  r_path-Type}</def></defun><defun title="&lt;security-manager>"><p>&lt;security-manager> enables the use of the security manager for the JVM.Because the JVM security manager is very slow, we generally do notrecommend enabling it for server applications.  Instead, see the<a href="resin-watchdog.xtp">watchdog</a> configuration for alternativemethods for securiting the JVM in ISP configurations.</p><def title="&lt;security-manager> schema">element security-manager {  r_boolean-Type

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -