Redeploy application after JSF managed bean modification

后端 未结 2 503
小鲜肉
小鲜肉 2020-12-22 02:01

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

Development environment:

  • Eclipse Indigo.
  • JBoss a
2条回答
  •  醉酒成梦
    2020-12-22 02:32

    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. It's related to Java development in general and thus also affects all other kinds of Java frameworks/libraries whose code you basically try to edit "live".

    See also:

    • Changes in .xhtml file not reflected in browser, restart and build needed

提交回复
热议问题