什么是antiJARLocking属性? [英] What is antiJARLocking attribute?

查看:393
本文介绍了什么是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



来自上下文配置的Tomcat 7.0文档


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.

这篇关于什么是antiJARLocking属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆