Eclipse Indigo、Glassfish 3.1.1 插件调试问题
我已经从 myeclipse 迁移到 eclipse 并开始使用开源 glassfish 插件和新版本的 glassfish 服务器。这并不是一帆风顺,但我已经开始行动了。我的问题是,当我在调试模式下启动 glassfish 服务器并对 java 文件进行更改时,它会重新启动整个应用程序,这并不让我高兴。
在 myeclipse 世界中,它将进行分解部署,我将能够更正代码并继续调试和工作,而无需重新启动应用程序。那当然是 myeclipse 8.6 和 glassfish v2。
我是否遗漏了某些内容,或者此功能仅由 myeclipse 提供?
I have migrated from myeclipse to eclipse and started using the open source glassfish plugin with the new version of glassfish server. It was not smooth sailing but I am up and running. My question is when I start the glassfish server on the debug mode, and make changes to a java file, it restarts the whole app which does not make me happy.
In the myeclipse world, it would do the exploded deployment and I will be able to correct the code and keep on debugging and working without restarting the app. That's of course myeclipse 8.6 and glassfish v2.
Am I missing something or is this functionality only provided by myeclipse ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 Eclipse 控制的服务器,如果您将 Eclipse 中的应用程序发布到服务器,Eclipse 会跟踪 Java 代码的更改,并在更改时自动重新部署应用程序。我从来不会因为你所经历的原因而这样做。
如果您只是将 Glassfish 服务器配置指向应用程序,使其充当应用程序部署目录(这可以使用 JBoss 完成,不确定 Glassfish),Eclipse 将不再监视更改,也不会自动重新部署。我能够在服务器运行时对 Java 类进行更改,并且大约 75% 的更改会被采纳。
另一种选择是使用一个工具,该工具声称允许您进行任何和所有 Java 更改而无需重新编译,例如 JRebel< /a>,适用于 Eclipse。
With Eclipse-controlled servers, if you publish the application in Eclipse to your server, Eclipse keeps track of changes to Java code and automatically redeploys the app upon change. I never do this for the reason you are experiencing.
If you just point your Glassfish server configuration at your application so that it functions as an application deployment directory (this can be done with JBoss, not sure about Glassfish), Eclipse is no longer monitoring changes and will not auto-redeploy. I'm able to make changes to Java classes while the server is running and about 75% my changes are picked up.
Another option would be to use a tool which purports to allow you to make any and all Java changes without recompiling, like JRebel, which works in Eclipse.