📄 config-env.xtp
字号:
<s2 title="jndi-link" occur="*" version="Resin 1.2" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents> <!-- com.caucho.naming.LinkProxy --><p>Links a foreign JNDI contexts or JNDI object.</p><p>Resin's JNDI can link to foreign JNDI contexts. For example, third-partyEJB servers will often expose their EJB beans through a JNDI context.jndi-link will create the appropriate InitialContextFactory, configure it,and lookup the foreign JNDI objects.</p><deftable-childtags><tr><td>jndi-name</td><td>The JNDI name where the foreign context should be linked. Resin 3.0</td><td>required</td></tr><tr><td>factory</td><td>Class name of the JNDI InitialContextFactory. Since Resin 1.2</td><td>optional</td></tr><tr><td>foreign-name</td><td>Sub-context of the foreign JNDI context. Since Resin 1.2</td><td>none</td></tr><tr><td>init-param</td><td>Configuration parameters for the JNDI environment passed to InitialContextFactory. Since Resin 1.2</td><td>none</td></tr></deftable-childtags><example title="Linking a WebLogic EJB client bean"><jndi-link> <jndi-name>java:comp/env/ejb/traderHome</jndi-name> <factory>weblogic.jndi.WLInitialContextFactory</factory> <init-param java.naming.provider.url="t3://localhost:7001"/> <foreign-name>statelessSession/TraderHome</foreign-name></jndi-link></example><example title="A JNDI symbolic link EJB client bean"><jndi-link> <jndi-name>java:comp/env/ejb/MyBean</jndi-name> <foreign-name>/SampleBean</foreign-name></jndi-link></example></s2><s2 title="reference" occur="*" version="Resin 3.0" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents> <!-- com.caucho.config.types.ReferenceConfig --><p>Configures a JNDI ObjectFactory.</p><p>JNDI ObjectFactories are used to create objects from JNDI references.The <reference> tag configures the ObjectFactory and stores it in JNDI.</p><deftable-childtags><tr><td>jndi-name</td><td>JNDI name for the reference. Since Resin 3.0</td><td>required</td></tr><tr><td>factory</td><td>Class name of the ObjectFactory. Resin 3.0</td><td>required</td></tr><tr><td>init</td><td>Bean-style initialization for the factory</td><td>none</td></tr></deftable-childtags><example><reference> <jndi-name>hessian/hello</jndi-name> <factory>com.caucho.hessian.client.HessianProxyFactory</factory> <init url="http://localhost:8080/ejb/hello"/> type="test.HelloHome"/></reference></example></s2><s2 title="resource" occur="*" version="Resin 3.0" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents> <!-- com.caucho.config.types.Resource --><p>Configures a custom bean resource and stores in JNDI.</p><p>Resources are beans stored in JNDI. The resources can becreated from any Java class that conforms to the bean conventions.Configuration of the resource is in the <init> section. Field values mayuse JSP-EL expressions as well as constant strings or even complexsub-beans.</p><deftable-childtags><tr><td>jndi-name</td><td>JNDI name for the resource. Since Resin 3.0</td><td>required</td></tr><tr><td>type</td><td>Bean class implementing the resource. Since Resin 3.0</td><td>required</td></tr><tr><td>arg</td><td>Arguments to the resource's constructor. Since Resin 3.0</td><td>optional</td></tr><tr><td>mbean-name</td><td>JMX name for management registration. Resin 3.0</td><td>optional</td></tr><tr><td>init</td><td>Bean-style initialization for the bean</td><td>optional</td></tr><tr><td>listener</td><td>Registers the bean as a listener for a JMX emitter. Resin 3.0</td><td>optional</td></tr><tr><td>local-transaction-optimization</td><td>Enables the local transaction optimization. Resin 3.0.7</td><td>true</td></tr></deftable-childtags><example><resource jndi-name="env/test"> <type>test.MyBean</type> <init> <greeting>Hello</greeting> <server>${'${'}serverId}</server> <sub-bean> <value>${'${2'} + 2}</value> </sub-bean> </init></resource></example><def title="schema">r_listener-Resource = element listener { r_mbean-name, r_handback*}r_resource = element resource { (r_jndi-name? & r_mbean-name? & r_mbean-interface?), (r_type, r_arg*)?, (r_init* & r_listener-Resource*)}</def></s2> <s2 title="resource-deploy" occur="*" version="Resin 3.0" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents> <!-- com.caucho.jca.ResourceDeploy --><p>Defines a deployment directory for .rar files.</p><p>Connectors and resources defined in .rar files must be deployedbefore they can be configured by <a href="#connector">connector</a>.The <resource-deploy> tag specifies the directory for that deployment.</p><example title="example resource-deploy"><host> <resource-deploy path="deploy"/> ...</host></example><deftable-childtags><tr><td>resource-deploy</td><td>Configures .rar deployment</td><td>required</td></tr><tr><td>path</td><td>Configures the path where users will place .rar files</td><td>required</td></tr><tr><td>expand-path</td><td>Configures the directory where Resin will expand rar files</td><td>the path value</td></tr></deftable-childtags><def title="schema">element resource-deploy { (attribute path { string } | element path { string }) & (attribute expand-path { string } | element expand-path { string })?}</def></s2><s2 title="resource-ref" occur="*" version="Servlet 2.2" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents> <!-- com.caucho.config.types.ResourceRef --><p>Declares that the application needs a resouce configuration.</p><p>resource-ref is not directly used by Resin. It's a servlet configurationitem intended to tell GUI tools which resources need configuration.Resource configuration in Resin uses the resource, reference,database, and ejb-server tags.</p><p>For backwards compatibility, Resin 2.1-style configuration filesmay still use resource-ref to configure resources, but it's recommended toconvert the configuration.</p></s2></s1><s1 title="Logging"><s2 title="log" occur="*" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><p>Configures JDK 1.4 java.util.logger logging.</p><p>The <a href="config-log.xtp">log configuration</a> describeslog in detail.</p></s2><s2 title="stderr-log" occur="?" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><p>Configures the destination for <code>System.err</code>.</p><p>The <a href="config-log.xtp">log configuration</a> describesstderr-log in detail.</p></s2><s2 title="stdout-log" occur="?" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><p>Configures the destination for <code>System.out</code>.</p><p>The <a href="config-log.xtp">log configuration</a> describesstderr-log in detail.</p></s2></s1><s1 title="Authenticator"><s2 title="authenticator" occur="*" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app, login-config</parents> <!-- com.caucho.config.types.Authenticator --><p>Configures an authentication resource for the current context.</p><p>Resin's servlet authentication uses an authentication resource tovalidate user login and to provide single-signon capability.The authenticator is configured in the environment contextwhere it is shared. So an authenticator configured in the web-apponly applies to the web-app, but an authenticator configured inthe host will apply to all hosts.</p><p>The authenticator class is selected with the <var>type</var> attribute. Itcan be any custom classextending <code>com.caucho.server.security.AbstractAuthenticator</code>.Configuration of the authenticator uses bean-style configuration in the<init> tag.</p><deftable-childtags><tr><td>jndi-name</td><td>The JNDI name where the authenticator is stored. Since Resin 3.0</td><td>java:comp/env/caucho/auth</td></tr><tr><td>type</td><td>The implementing class for the authenticator. Since Resin 3.0</td><td>required</td></tr><tr><td>init</td><td>A bean-style configuration section. Since Resin 3.0</td><td>none</td></tr></deftable-childtags></s2></s1><s1 title="Miscellaneous"><s2 title="system-property" occur="*" version="Resin 2.0" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><p>Sets a Java system property. The effect is the same as if youhad called <a href="javadoc|java.lang.System|setProperty(String,String)"/> before starting Resin.</p><example><resin> <system-property foo="bar"/></resin></example></s2><s2 title="javac" occur="?" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents> <!-- com.caucho.java.JavacConfig --><p>Configures the Java compiler for automatically compiled files.</p><p>The javac configuration is used for JSP, XSL, EJB andcompiling-loader configuration.</p><deftable-childtags><tr><td>compiler</td><td>Configures the Java compiler to use. Since Resin 3.0</td><td>internal</td></tr><tr><td>args</td><td>Any additional arguments for the compiler. Since Resin 3.0</td><td>none</td></tr><tr><td>encoding</td><td>Any encoding valued for the compiler. Since Resin 3.0</td><td>none</td></tr></deftable-childtags></s2><s2 title="dependency" occur="?" version="Resin 3.0.1" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><p>Configures a path as a file which should force a reload when changed,like web.xml and resin.xml.</p><deftable-childtags><tr><td>path</td><td>Filesystem path to the dependent file. Since Resin 3.0</td><td>required</td></tr></deftable-childtags><example title="web.xml"><web-app xmlns="http://caucho.com/ns/resin"> <dependency path="WEB-INF/struts-config.xml"/> ...</web-app></example></s2><s2 title="dependency-check-interval" occur="?" version="Resin 3.0" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><default>2s</default><p>Configures how often the environment contextshould be checked for changes.</p><p>Resin automatically checks each environment for updates, generallyclass or configuration updates. Because these checks can take a considerableamount of time, deployment servers should use high values like 60s or more while development machines will want low values like 2s.</p><p>The interval defaults to the parent's interval. So the web-app willdefault to the host's value.</p></s2><s2 title="character-encoding" occur="?" version="Resin 1.1" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><default>The default value is ISO-8859-1.</default><p>Specifies the default character encoding for the environment.</p><example><web-app id='/'> <character-encoding>shift_jis</character-encoding> ...</web-app></example></s2><s2 title="case-insensitive" occur="?" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><default>true on Windows, false on Unix.</default><p>Specifies whether the environment context is case sensitive or insensitive.</p><p>Because some operating systems are case-insensitive, it is importantfor security reasons for Resin to behave differently for case-sensitiveand case-insensitive directories. For example, when case-insensitiveis true, url-patterns will match in a case-insensitive manner, so TEST.JSPwill work like test.jsp.</p></s2><s2 title="temp-dir" occur="?" version="Resin 1.1" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><default>Defaults to <var>WEB-INF/tmp</var></default><p>Application temp directory. This is the path used in<var>javax.servlet.context.tempdir</var>.</p></s2><s2 title="work-dir" occur="?" version="Resin 2.0.0" type="defun"><parents>resin, server, host-default, host, web-app-default, web-app</parents><default>Defaults to <var>WEB-INF/work</var></default><p>Application work directory. This is the directory used forgenerated code like JSP, XSL and EJB classes.</p></s2></s1></body></document>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -