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

后端 未结 2 696
忘了有多久
忘了有多久 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:15

    This thread is old, but I still had the same problem, using eclipse and WebSphere.

    One place to check is this. If you use JSF files with the .xhtml ending, you have to make sure that changes in these do not trigger automatic republishing.

    1. In the tab "Servers" double-click on your server.
    2. Open the "Publishing settings for WebSphere Application Server"
    3. Click on "Set Advanced Publishing Settings...".
    4. In the "List of file extensions that do not trigger the server to publish ..." insert or append ", *.xhtml".
    5. Close these settings and restart the server.

    In web.xml I have also added a parameter with the name javax.faces.PROJECT_STAGE and the value Development , which may have an influence on the offending behavior.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题