Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes Deploy JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Deploy JSP" Watch "Deploy JSP" New topic
Author

Deploy JSP

ram ba
Greenhorn

Joined: Sep 19, 2006
Posts: 4
Can anyone list out the Pros/Cons for deploying JSP (or a servlet) in application server rather than in web server? Even if you can point me to where I can read about this would be appreciated.

My concern is more from about security and would love if you can consider that as well.

Thanks,

Ramesh

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

As far I know:
web server :
* easy to use when you learn or for beginners example: tomcat
* only support HTTP/HTTPS
* cant deploy ejb applications.

application server:
* IS-A webserver
* some server, also support other protocal example: BEA support sip
* support ejbs.

there might be really good differences. search for more details.



harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

If you don't need to deploy business logic or JMS or any configurable transaction features as we have in case of applicationservers like weblogic go for web servers.
As far as security and system level functionalities are concerned application servers are far better.

Go with web servers for easy to develop and deploy servers.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
There is no unique definition of an "application server", so what it might or might not be capable of doing is up to one's own definition. What *is* strictly defined is a "JEE server" or "JEE application server" - it must implement everything the JEE spec says is mandatory. So I disagree with this:
Seetharaman Venkatasamy wrote:
application server:
* IS-A webserver
* some server, also support other protocal example: BEA support sip

An application server need not also be a web server. Those roles are often separated out into different (logical or physical) servers. As regards SIP, support for that can easily be added to a servlet container like Tomcat (which, by the way, I wouldn't call a "web server": if people need a web server -and specifically *not* a servlet container- then Tomcat is not the server of choice).


Ping & DNS - updated with new look and Ping home screen widget
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Thanks Ulf .

Ulf Dittmer wrote: I wouldn't call a "web server": if people need a web server -and specifically *not* a servlet container- then Tomcat is not the server of choice.

True. but most of the time people get confused between web server vs web container. so to make it simple I use web server
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
The problem with the term "web container" is that it's so infrequently used that people just don't know what it is. What a "servlet container" does, OTOH, is clear, at least in the Java world. Whereas referring to something as "web server" that is predominantly not used as that but as a servlet container, just muddies the water, IMO.
ram ba
Greenhorn

Joined: Sep 19, 2006
Posts: 4
Thanks for all your replies.

From my perspective,
- "Web Server" should host all JSP/Servlet/HTML where as any business logic should be implemented in "Application server".
- For security reason the Web server and Application server should be properly firewalled to effectively secure the two layers.
- "Web Server" should manage the user session and can propagate the security context to "application server" on a call.


I would love if anyone can comment on this.

Thanks,

Ramesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploy JSP
 
Similar Threads
JSP forward tag
ALerts in jsp
web server Vs App server
jsp and asp
free voice recognition tool to embed in jsp