This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Webapplication (JSP's, Servlets, PostgreSQL DB) availble offline (locally).

 
D Acc
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I have created a Web site/application containg JSP's & Servlets connecting to a PostgreSQL DB.
This was all deployed and worked fine. However requirements have changed and this now only needs to be available on 1 machine only.

Is there a way to package everything - or as much as possible into a single one click install / launchable file, and how would I go about doing this.

The project has been built as a web application within Netbeans.

Obviously I could install Postgres and Tomcat or Glassfish, however I would much prefer a single install.

Any help would be great, I think the above makes sense.
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java web applications are packaged as WAR files, just deploy that war file into you application server/web container.
You can even automate the deploying process if you are using Apache Ant for example.

Update
You are trying to install PostgreSQL, Tomcat/Glassfish in one shot.
I don't think installing DB/Application server in one shot brings any value. Actually it could take too much time to do (creating a way to bundle them together and then installing), more than installing each system individually (IMHO).
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could create a desktop application that embeds Tomcat and the web app. There would be nothing to install besides copying (maybe unzipping) the desktop app.

The DB would be a problem - installing and configuring something like Postgres locally will likely not end happily (at the very least, it won't be easy). Maybe you can use an embedded Java DB such as Derby?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic