Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Can I use Application server as Webserver?

 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I have an application that is currently just some JSPs and Servlets. I was using iPlanet webserver for that application but now I want to use Application Server SUN ONE for the same. My question is- can I use Application Server as the Webserver even though I am not having any EJBs and all you know?
Please point me some problems or issues you might see with this. I have never worked with any Application server and I have yet to go through any documentation regarding the deployment structure and all for the application server I am going to use.
I understand that, it will make little sense to "underuse" application server's capabilities but later on I am going to migrate to EJBs and all where I can use application server's capabilities.
Any pointers are welcome.
Regards
Maulin
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maulin -
You can use any application server you want, even if you're only having jsp/servlets. For instance, I used JBoss for a web application, having 0 ejb's.
In order to "migrate" your web application, it's better to create a war file and look for the SUN ONE documentation and see how to deploy a war file into the application server. It shouldn't be complicated.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BTW, you want a web server or a web container?
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Andres
What you mean by web container?
I guess I need a web server. My application on iPlanet currently and on the other machine we are running app server where we would deploy.
Regards
Maulin
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A "web server" serves HTML pages and other static content.
A "web container" serves JSP pages and servlets (in addition to static content).
An "application server" serves JSP pages, servlets, Enterprise JavaBeans, J2EE Connectors, and so on.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have a look at this post.
I'm not familiar with iPlanet, but if (after reading my link) you're looking for a web server, then apache is my suggestion.
If you're looking for a web container (jsp/servlets), then tomcat or jetty
notice that jetty is a HTTP servlet server (so it's a web server + web container). The same with tomcat.


Jetty is a 100% Java HTTP Server and Servlet Container. This means that you do not need to configure and run a seperate web server (like Apache) in order to use java, servlets and JSPs to generate dynamic content. Jetty is a fully featured web server for static and dynamic content. Unlike separate server/container solutions, this means that your web server and web application run in the same process, without interconnection overheads and complications.



let me know if I confused you more
[ August 26, 2003: Message edited by: Andres Gonzalez ]
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All ,
To develop a web applications you need web container . So , JBoss for instance is an application server (serves as a EJB container), but in the same time you can get it integrated with a web container ,such as Jetty or Tomcat. You can find the different integrated versions in their site
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Thanks for all the input. According to Lasse definition, I need a Web-container.
I already have SUN ONE App server but I will just use it to host JSP/Servlets/HTML rather than EJBs and all.
I am going through the SUN ONE App server documentation for more details.
Regards
Maulin
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic