Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i deploy my website online

 
Rajesh Khan
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • 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 ??
 
Tim Moores
Bartender
Posts: 2947
46
  • Mark post as helpful
  • send pies
  • 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
  • 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
Bartender
Posts: 2947
46
  • Mark post as helpful
  • send pies
  • 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.
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • 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?
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic