glassfish
  1. glassfish
  2. GLASSFISH-12793

Ability to Load Individual Servlets without reloading entire web app

    Details

    • Issuezilla Id:
      12,793

      Description

      It would be helpful if it was possible to deploy or load a single new servlet
      listed in the web.xml file without causing issues / or redeploying all ejbs, or
      other resources (JMS queues, etc..).

      This has been discussed here, and more information is contained in the post:

      http://forums.java.net/jive/thread.jspa?threadID=79152

        Issue Links

          Activity

          Hide
          tetyanac added a comment -

          I downloaded glassfish-3.1-b42.zip ant tested on it on Windows XP.

          I got new Servlet behaviour only after I click reload of application in GUI admin. The problem is still here.

          Show
          tetyanac added a comment - I downloaded glassfish-3.1-b42.zip ant tested on it on Windows XP. I got new Servlet behaviour only after I click reload of application in GUI admin. The problem is still here.
          Hide
          Tim Quinn added a comment -

          You did not mention which specific build 42 you downloaded. There are multiple ones from different dates and not all of them contain the fix for the .reload handling.

          I just downloaded this build

          http://dlc.sun.com.edgesuite.net/glassfish/3.1/nightly/glassfish-3.1-b42-02_13_2011.zip

          onto two different Windows XP systems. On both systems I have:

          deployed your example app,

          accessed http://localhost:8080/dynamicreload

          edited src\webtest\TestServlet.java to display a different message

          recompiled src\webtest\TestServlet.java

          copied the new webtest\TestServlet.class into glassfish\domains\domain1\applications\dynamicreload\WEB-INF\classes\webtest

          used notepad to create .reload in glassfish\domains\domain1\applications\dynamicreload

          accessed the app again

          and this displayed the new output.

          The .reload feature is working for me.

          Show
          Tim Quinn added a comment - You did not mention which specific build 42 you downloaded. There are multiple ones from different dates and not all of them contain the fix for the .reload handling. I just downloaded this build http://dlc.sun.com.edgesuite.net/glassfish/3.1/nightly/glassfish-3.1-b42-02_13_2011.zip onto two different Windows XP systems. On both systems I have: deployed your example app, accessed http://localhost:8080/dynamicreload edited src\webtest\TestServlet.java to display a different message recompiled src\webtest\TestServlet.java copied the new webtest\TestServlet.class into glassfish\domains\domain1\applications\dynamicreload\WEB-INF\classes\webtest used notepad to create .reload in glassfish\domains\domain1\applications\dynamicreload accessed the app again and this displayed the new output. The .reload feature is working for me.
          Hide
          tetyanac added a comment -

          I downloaded from http://dlc.sun.com.edgesuite.net/glassfish/3.1/promoted/:

          [ ] glassfish-3.1-b42.zip 14-Feb-2011 09:27 78M

          Seems it is released after that you mentioned.

          Could you please check whether it contains the discussed fix?

          Thank you

          Show
          tetyanac added a comment - I downloaded from http://dlc.sun.com.edgesuite.net/glassfish/3.1/promoted/: [ ] glassfish-3.1-b42.zip 14-Feb-2011 09:27 78M Seems it is released after that you mentioned. Could you please check whether it contains the discussed fix? Thank you
          Hide
          Tim Quinn added a comment -

          There is an even more recent promoted build now: b43. Use that one.

          The .reload feature works correctly in promoted b43. I am confident it also works in promoted build 42 since earlier, nightly builds of b42 worked correctly.

          Show
          Tim Quinn added a comment - There is an even more recent promoted build now: b43. Use that one. The .reload feature works correctly in promoted b43. I am confident it also works in promoted build 42 since earlier, nightly builds of b42 worked correctly.
          Hide
          tetyanac added a comment -

          Thank you. Now it works as expected.

          Show
          tetyanac added a comment - Thank you. Now it works as expected.

            People

            • Assignee:
              Hong Zhang
              Reporter:
              hoffman462
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: