• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Apache Web Server & (Tomcat or JBoss)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello fellow ranchers,

You've probably heard this before, so I apologize in advance because I cannot find a post similiar to this one. As a current COM/VB/ASP developer, I'm trying to branch out into Java development. My question is in starting out for working on enterprise web applications, what would be the ideal solution for web serving static content mixed with PHP and mysql for basic stuff and then using java for critical applications ... my current level of knowledge would suggest the following:

1. Apache Web Server + PHP + MySQL for basic queries and static/dynamic content.

2. Java using the MVC arch. for business applications above and beyond #1 using ??? -- I'm not sure what would be ideal for production use. My guess would be Apache web server + JBoss + and a transactional SQL DB Server of company choice say SQL Server/Oracle, etc....

I'm using Tomcat and IIS right now, IIS for asp development and Tomcat for learning servlets and jsp's. So the final question would be, if I had Tomcat installed first, how could I integrate apache web server with it -- would the installer make the necessary configurations to utilize Tomcat on the Apache Web server installation? I understand that this maybe a another topic altogther and would greatly appreciate a tutorial link to integrate the two if it's a not a simple question to answer.

-- or --

If JBoss is the ideal solution, how would I integrate JBoss with Apache web server?

Many, many, many thanks in advance!
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Alex,

Apache, Tomcat and JBoss provide different services: Tomcat is a servlet container, whereas JBoss is an EJB container. However, Tomcat may also serve HTML pages (this may be a source of confusion).

Consequently, for working with servlets, you use a servlet engine like Tomcat. For working with EJBs, you need an EJB container like JBoss.

EJBs, which always live in EJB containers, can be addressed by any remote (Java) client - that is, stand-alone clients as well as servlets. You do not address EJBs (or JBoss) directly through a Web Server like Apache.

Check Google for Tomcat/Apache integration. You will find a lot of resources.

Hope this helps!
[ June 22, 2004: Message edited by: Mag Hoehme ]
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the link to tomcat+apache
http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html
 
Alex Williams
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To Mag: Excellent tutorial! Thanks a million!

To Pradeep: Thanks for the link!

I greatly appreciate the help you both provided! Thanks again!
 
Forget Steve. Look at this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!