Is it possible to apply changes to JSF files without republishing?

后端 未结 2 730
忘了有多久
忘了有多久 2021-01-25 10:32

I\'m using IBM RAD version 8.0 and deploying the EAR applications to IBM WebSphere 7.0. Each time I change a JSF file, I need to republish the application, otherwise the changes

2条回答
  •  天命终不由人
    2021-01-25 11:19

    This is normally to be configured in server configuration. Doubleclick the desired server in Eclipse's Servers view and head to Publishing section.

    enter image description here


    Note that you should take Facelet cache into account as well, particularly when using MyFaces which caches relatively agressively. If you make sure that javax.faces.PROJECT_STAGE context parameter is set to Development, then both MyFaces and Mojarra will relax the Facelet caching strategy, causing it to recompile the Facelet file almost instantly instead of using the cached version for a rather long time.

    An alternative to Publishing setting is to use JRebel. It is able to publish changes in Java classes such as managed beans and EJBs as well, saving a lot of hotdeployment time. It has an Eclipse plugin as well.

提交回复
热议问题