facebook

JSP hot swap

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #224810 Reply

    rtse
    Member

    I’m sorry for asking, but I can’t find a solid answer on this.

    I’ve deployed my web app to the Sun App Server 8.1. If I make modifications to my JSP’s in MyEclipse, is the JSP (or JSP compiled code) on the server supposed to code hot swap? I find it very inconvenient to have to redeploy everytime I make a small change to my JSP file.

    Thanks,
    Rob

    #224831 Reply

    Riyad Kalla
    Member

    If I make modifications to my JSP’s in MyEclipse, is the JSP (or JSP compiled code) on the server supposed to code hot swap?

    If you are using an exploded deployment, then yes. As soon as you save that JSP page, it gets copied out to the server, so next time you hit Refresh in your browser, the server will recompile the new page and show it to you. It is a very handy feature.

    I usually code for about a week without a redeployment, jsut relying on hotswap (I use Tomcat 5).

    #224872 Reply

    rtse
    Member

    Okay… I’ve figured out the whole exploded deployment thing and got it working with SunAppServer …. BUT … the change only seems to take effect if I log out of my application (thus invalidating the session) or closing and opening a new browser window. Clicking the refresh button just seems to make the browser spin endlessly – or clicking on any other link in my application for that matter.

    Any ideas? Maybe a configuration problem? I’m running Sun App Server PE 8.1 on Win2000 pro, with MyEclipse 3.8.4

    thanks,
    Rob

    #224873 Reply

    Riyad Kalla
    Member

    No idea Rob, if you don’t need EJBs, I’d suggest using Tomcat, atleast to test your app and see what is going on.

    #224916 Reply

    rtse
    Member

    The problem I’m having has to do with Tiles … a file not using Tiles updates as expected – only the ones using Tiles is giving me this difficulty. I guess I’ll do more battle with it and see if I can get it to update properly. Thanks.

    #226532 Reply

    krobinson
    Member

    I was looking for hot swap of my class files for my web application. These are the files located in web-inf/classes/*, so reloads of the jsp pages though helpful, didn’t quite get the trick done. But I remembered that this was a config parameter in your server.xml file in the context element. For your particular application, add the param/value reloadable=”true”.

    Then when you redeply, tomcat will watch the class folder and tomcat will take care of the swap vs. eclipse.

    Just thought I’d share 😀

    #226533 Reply

    krobinson
    Member

    Checkout the tomcat configuration section for more details on the above.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: JSP hot swap

You must be logged in to post in the forum log in