Assuming you have developed a webapp that is to be used locally by the client, what are the steps required to distribute it?
- Use an embedded web server
Glassfish v3 comes with an embedded version on the original distribution which you can use.
- Use an embedded database
First thing that comes to mind is Apache Derby
Now the trickiest part (which I don't have an answer) is how to provide a file that the user just double clicks and launches the webapp.
Should you provide a swing application with an embedded browser? That means you will have to take into account the quirks of the specific browser that you are developing. Are they up to date as their desktop counterparts?
Should you open the default browser providing the URL? Is there a way to ensure the browser did open correctly? How do you on on cleaning up any resources when the client closes the window?