问题
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