wood burning stoves*
The moose likes Tomcat and the fly likes How can i deploy my website online Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How can i deploy my website online" Watch "How can i deploy my website online" New topic
Author

How can i deploy my website online

Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Oct 16, 2011
Posts: 230
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Jun 05, 2010
Posts: 622
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?


kunal
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i deploy my website online
 
Similar Threads
Managing Space for subdomains through java
GWT: online stream
SCJP Certificate
Have any project suggestions?
Active User