Redeploy application after jsf managed bean modification

﹥>﹥吖頭↗ 提交于 2019-12-13 01:23:09

问题


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

Development environment:

  • Eclipse Indigo.
  • JBoss as 7.
  • JBossAS Tools.

Further explanation:

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.


回答1:


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 plugin is able to handle new classes, methods and fields during hotdeploy, but not new managed bean registrations.

Please note that this all is unrelated to JSF.




回答2:


I solve like this Project -> Build Automatically



来源:https://stackoverflow.com/questions/15685845/redeploy-application-after-jsf-managed-bean-modification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!