#navi_header|Java| EclipseやNetBeansからServletアプリをTomcat上でローカルデバッグするとき、Javaソース編集してclass更新された後のHotSwapが時々失敗する。 JRebelという有償製品が、HotSwapを安定して動かせるようになるらしい。 購入する前の、調査メモです。 - JRebel Java Plugin: Eclipse, IntelliJ, NetBeans | zeroturnaround.com -- http://zeroturnaround.com/software/jrebel/ ユーザの声: - How to Set Up Hot Code Replacement with Tomcat and Eclipse - Redfin Developer Blog -- http://blog.redfin.com/devblog/2009/09/how_to_set_up_hot_code_replacement_with_tomcat_and_eclipse.html#.U6xEffl_sqI - Eclipse WTP Tomcat hot deploy | DucQuoc's Blog -- http://ducquoc.wordpress.com/2010/11/06/eclipse-wtp-tomcat-hot-deploy/ - Build a RESTful Web service using Jersey and Apache Tomcat -- http://www.ibm.com/developerworks/library/wa-aj-tomcat/ - My Adventures into REST with Java, Jetty, JRebel, Jersey, Maven, and IntelliJ | Andrew van der Westhuizen -- http://www.avanderw.co.za/my-adventures-into-rest-with-java-jetty-jrebel-jersey-maven-and-intellij/ - JRebelを使った動的クラスリローディング - ( ꒪⌓꒪) ゆるよろ日記 -- http://yuroyoro.hatenablog.com/entry/20101221/1292919346 - java - Getting JRebel to work with 'mvn tomcat:run' - Stack Overflow -- http://stackoverflow.com/questions/5788414/getting-jrebel-to-work-with-mvn-tomcatrun 技術的に関連してそうなもの: - J2SE 5.0 Tiger 虎の穴 Instrumentation -- http://www.javainthebox.net/laboratory/J2SE1.5/MiscAPI/Instrumentation/Instrumentation.html - javaでjavaagentとagentlibを調査してみる - Flicker's Style++ -- http://waysaku.hatenablog.com/entry/20120415/1334504938 - java - Javaagent reports "redefineClasses is not supported in this environment" - Stack Overflow -- http://stackoverflow.com/questions/12844186/javaagent-reports-redefineclasses-is-not-supported-in-this-environment - Creation, dynamic loading and instrumentation with javaagents | Dhruba Bandopadhyay -- http://dhruba.name/2010/02/07/creation-dynamic-loading-and-instrumentation-with-javaagents/ - Instrumentation (Java Platform SE 7 ) -- http://docs.oracle.com/javase/jp/7/api/java/lang/instrument/Instrumentation.html クラスファイルの更新監視ということであれば、ファイル更新の監視関連トピック: - Java SE 7 (4) - "NIO.2" ファイルシステム関連APIの増強 - argius note -- http://argius.hatenablog.jp/entry/20110918/1316321982 - JavaSE7でファイルを監視する方法 - seraphyの日記 -- http://d.hatena.ne.jp/seraphy/touch/20120506/p2 - WatchService で再帰的にディレクトリ監視で難あり - A Memorandum -- http://etc9.hatenablog.com/entry/20120519/1337449611 - WatchServiceが正しいPathを返してくれない: 発火後忘失 -- http://feather.cocolog-nifty.com/weblog/2011/09/watchservicepat.html こんなのもある: - https://github.com/HotswapProjects/HotswapAgent JavaのClassLoaderの闇は深いので、有償製品で楽できるなら、それに頼るのもありか。 #navi_footer|Java|