![]() |
![]() ![]() |
![]() |
![]() |
![]() |
In this section, you will leverage the dynamic redeployment feature of
the application server by modifying several different components in the
application, redeploying and retesting the application without restarting
the application server. Each exercise is very basic in that you will modify
the source code of various types of files, recompile when necessary and
simply redeploy the application. The combination of the IDE's automatic
reassembly features and the application server's dynamic redeployment
capabilities should make your cycle times as short as possible.
Modify HTML File1. In Explorer, double click the index.html file located under the web module. 2. Change the following line from:
to:
Also modify the page title that is displayed as part of the HTML content. Change:
to:
3. Save your changes to the file. 4. Select the jdbcSimpleApp node in Explorer, right-click and select Deploy. 5. After deployment completes, access the application to see the change. You should see the modified page title at the top of the browser window. Modify JSP File1. In Explorer, double click the GreeterDBView.jsp file located under the web module. 2. Change the following line from:
to:
3. Save your changes to the file. 4. Select the jdbcSimpleApp node in Explorer, right-click and select Deploy. 5. After deployment completes, access the application to see the change. Enter your name and click Process. You should see the modified greeting string. 6. Access the application once more to see how quickly the subsequent requests are processed. Modify Servlet1. In Explorer, navigate to the GreeterDBServlet file under the WEB-INF -> Classes area of the mounted web module. 2. Double click the GreeterDBServlet located under the web module. 3. In the doGet() method, change the following line from:
to:
4. Recompile the servlet by right clicking on the source editor and selecting Compile. 5. Select the jdbcSimpleApp node in Explorer, right-click and select Deploy. 6. After deployment completes, run the application and monitor the server log file. Look for the MODIFIED string to appear at the very beginning of the stdout messages generated by the application. Modify EJB
|
![]() |
![]() |
![]() |