Tomcat 6 | What's the significance of antiResourceLocking & antiJARLocking?

前端 未结 2 997
深忆病人
深忆病人 2020-12-20 18:40

I am working on a project where we\'ll be using Tomcat 6.0.20 for Development and production.

I came across some issues related to hot deployment which requires one

2条回答
  •  生来不讨喜
    2020-12-20 18:59

    Here are my answers to these:

    1) From what I can tell, setting antiJARLocking and/or antiResourceLocking to false could only cause problems on Windows (though I vaguely remember a Tomcat developer claiming that it also affects Linux -- I'm disregarding that because I have seen zero evidence of it, and no examples / detailed explanations proving it).

    2) It is only bad practice to set these to false when Tomcat is running on Windows.

    Second 2)!! I have been running Tomcat on multiple Linux distributions and versions for more than ten years. I have never once seen a jar locking or resource locking problem due to not setting one of those attributes to true. As far as I know, it doesn't happen, but it might depend on the filesystem implementation you're using, and I always either used EXT2, EXT3, or EXT4.

    If you still have questions about this, ask about it on the Tomcat-user mailing list.

    Cheers!

    Jason Brittain Co-author, Tomcat: The Definitive Guide (O'Reilly)

提交回复
热议问题