什么是antiJARLocking属性?
属性 antiJARLocking
是什么意思?将它转换为 true / false 时有什么意义?
what does the attribute antiJARLocking
mean ? What is it's significance when I turn it to true / false ?
我在 context.xml中看到了这个属性
网络应用程序文件:
I have seen this attribute in context.xml
file of web-application :
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/poll">
<Resource name="jdbc/PollDatasource" auth="Container" type="javax.sql.DataSource"
// etc etc
</context>
Tomcat 7
antiJARLocking - 如果为true,Tomcat类加载器将采取额外措施以避免在内部访问资源时锁定JAR文件JAR通过URL。这将影响应用程序的启动时间,但可以证明在可能发生文件锁定的平台或配置上有用。如果未指定,则默认值为false。
(他们试图解决的问题......我认为......锁定的JAR文件会阻止热重新部署等工作。)
(The problem they are trying to address … I think … is that a locked JAR file will stop things like hot redeployment from working.)
阅读文档以获取更多信息。
Read the documentation for more information.
antiJARLocking
属性在Tomcat 8中消失了。参见 antiResourceLocking
属性。
The antiJARLocking
attribute is gone in Tomcat 8. See the antiResourceLocking
attribute.