jsf托管bean修改后重新部署应用程序 [英] Redeploy application after jsf managed bean modification

查看:145
本文介绍了jsf托管bean修改后重新部署应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么需要重新部署应用程序才能使jsf托管的bean修改生效?

Why is an application redeployment is needed for jsf managed bean modifications to take effect?

开发环境:

  • Eclipse Indigo.
  • JBoss为7.
  • JBossAS工具.

进一步的解释:

如果我修改jsf页面,则只需刷新页面即可看到修改.但这不是jsf托管bean修改的情况,我必须重新部署应用程序以使其可视化.

If I modify a jsf page, I can visualize the modification after simply refreshing the page. But this is not the case for jsf managed bean modifications where I have to redeploy the application to visualize them.

推荐答案

Eclipse/JBoss在hotpublish/hotdeploy期间无法处理 new 类,方法或字段.但是,他们可以借助JVM热插拔来处理修改方法主体和非静态字段的值.

Eclipse/JBoss cannot handle new classes, methods, nor fields during hotpublish/hotdeploy. They can however handle modified method bodies and values of non-static fields with help of JVM hot-swap.

JRebel 插件是可以在热部署期间处理 new 类,方法和字段,但不能处理新的托管bean注册.

JRebel plugin is able to handle new classes, methods and fields during hotdeploy, but not new managed bean registrations.

请注意,这一切与JSF无关.

Please note that this all is unrelated to JSF.

这篇关于jsf托管bean修改后重新部署应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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