• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How can i deploy my website online

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have finished my jsp and servlet website on eclipse and everything is in order. How can i transfer this site online. ?? Do i need to create a WAR file ??
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depends on where you want to deploy it. Some servlet containers need a war file, whereas others are happy to serve web apps out of a directory tree.

Also, what do you mean by "online" - opening up your machine to the network (or world)? Or renting server space somewhere?
 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:Depends on where you want to deploy it. Some servlet containers need a war file, whereas others are happy to serve web apps out of a directory tree.

Also, what do you mean by "online" - opening up your machine to the network (or world)? Or renting server space somewhere?



Uploading it to a smtp based server plus the container used will be tomcat
 
Tim Moores
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SMTP is a mail protocol; do you mean HTTP?

As I said, Tomcat can serve web apps out of a directory tree.
 
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also uploading in HTTP. I have created the site using servlet and jsp & Tomcat as a container. What difference will it make(in real world) if i go for connection pooling?
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:Depends on where you want to deploy it. Some servlet containers need a war file, whereas others are happy to serve web apps out of a directory



However, that "directory tree" must still be in WAR form. It's called an "exploded WAR".

Also, there are 2 ways to interpret the words "directory tree". I often have may WARs in a "directory tree", but by that I mean that I have the WAR file in some other directory than TOMCAT_HOME/webapps. It's still a WAR file, however. I'm presuming, though that what was meant here was a WAR directory structure (exploded WAR). Exploded WARs can also live either in TOMCAT_HOME/webapps or in a general external "directory tree".

Any webapp sophisticated enough to be worth the trouble and expense of coding in Java should be using database connection pooling.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic