This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to set a Java Web Server for EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to set a Java Web Server for EJB?" Watch "How to set a Java Web Server for EJB?" New topic
Author

How to set a Java Web Server for EJB?

arun mahajan
Ranch Hand

Joined: Dec 07, 2001
Posts: 305
Hello,
I am beginner in this field of EJB and would like to know followings:-
1. What are settings required for a Java Web Server to implement EJB?
2. Why there are different container for the JSP,Servlet,EJB.
3. Say I am using JRUN as my Java Web Server and IIS 5.0 as Web Server for http request on a windows machine how IIS will come to know that it is a servlet call or JSP or EJB call... or perhaps it depends upon a lot of ISAPI settings in it or could be java web server specific.
regards,
Arun
tony simon
Greenhorn

Joined: Oct 13, 2000
Posts: 18
1. For a WebServer to implement EJB the server should have an EJB engine.JRUN 3.0 has both the EJB engine and a Web Server.
2.Containers are basically the running environment for the Engines(JSP,Servlet,EJB)
3.Well I haven't used IIS with JRUN but I think JRUN does prompt for "Connect to External Server" after it is installed and we have to point out the directory where IIS is installed.
Hope this helps..............
Rishi Tyagi
Ranch Hand

Joined: Feb 14, 2002
Posts: 100
Althoughi have not worked on jrun server but whatever i know about it is you don't have to make any extra settings in jrun server for running the enterprise bean as at the time of intallation it automatically does this , only thing what we have to do is deploy an application on the jrun server.
Although i am not very much confirm at this point and would like some expert comments from java guru's on the same. As i am going to start working on jrun server so it will also help me there.
Looking forward for answers by so many java guru's.... :roll:
Rishi
Rishi Tyagi
Ranch Hand

Joined: Feb 14, 2002
Posts: 100
You should read the setup.pdf and devapp.pdf given with the JRun documentation, It may help you for the same, You can find these files in the Allaire/Jrun/docs subdir of Jrun installations directory
Hope it will solve your problem
Rishi
Ruilin Yang
Ranch Hand

Joined: Jan 06, 2002
Posts: 150
I am using JRUN 3.1. It is quite good for ejb. You do not need any extra configurations for running EJB. You just need to compile your beans and client codes and deploy the beans correctly.
In order to deploy the beans you need to produce a correct deployment descriptor file.
Regards
Ruilin
Fabrizio Gianneschi
Ranch Hand

Joined: Nov 29, 2001
Posts: 70
1. To support EJBs, you need an EJB Container (for example JBoss) that is not every time included in an Application Server (like Tomcat, that is "only" a Web Container). Note that an EJB container usually cannot directly respond to the Web Server (it can respond to direct IIOP calls, however), so usually people create Servlets/JSP that use EJBs that make business logic work.
2. You need different containers because each of them satisfy different needs. Web containers are designed to mantain web pages with dynamic content (like JSPs). You can construct an entire site with JSP/Servlet technologies with a little effort. The Servlet thread model is very fast.
But when the requirements of the applications are placed at "enterprise" level (high-availability, scalability, distributed business logic, high traffic volumes, distributed transactions, security) you will need something more, an EJB Container. The EJB technology was created for these purposes.
Regards,


Fabrizio Gianneschi<br />SCPJ2, SCWCD, SCBCD
 
Don't get me started about those stupid light bulbs.
 
subject: How to set a Java Web Server for EJB?