This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes y use EJB??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "y use EJB???" Watch "y use EJB???" New topic
Author

y use EJB???

neeti ravi
Greenhorn

Joined: Mar 18, 2001
Posts: 9
Hi guys
can u please help.im a bit new to EJB.
i have this question.why do we make use of EJB??I mean in a project, if the work can be done using java beans, y use EJB??
what about the overheads in EJB??
Also i would like to know, whether it is better to use the latest emerging technology or is it advisable to use the ones which is easier or more advantageous??
Please do reply
Thankx in advance
Neeti
Arun, Shanmugham
Ranch Hand

Joined: Apr 05, 2001
Posts: 34
Hi,
Though u can use Java Beans to do the work. EJB uses Java Beans in a Seperate layer of processing. i.e., the compliated process is done by the Application Server and not on the Web Server. So this will reduce the overhead on the Web Server and increase its Effieciency. Advanced Technology can be better if the application is upto the level of using it(Complication of the application). Otherwise we can go in for the ordinary methods.
Arun


Sun Certified Programmer for Java2 Platform
gupta boddu
Greenhorn

Joined: Jul 14, 2001
Posts: 9
Hello,
Please answer me the following questions.
1. Can weblogic server act like a webserver?
2. If we have the database on the same machine as web server, do we still need to use EJB? When exactly do we need to use EJB?
3. Can servlets be used as a replacement to EJB?
4. We have the following scenario. We are using iplanet enterprise server running cgi perl, applets, static html pages. If we need to use EJB, what is the best way to go? Use Iplanet application server or the Weblogic server.
5. can we use weblogic server along with the iplanet web server? If so how it works?
6. Do weblogic server can be used to serve static html pages, cgi perl scripts, applets etc ?
So many question as these are important to make decision.
Thanks a million!!
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
1-yes, but is a big waste of resourses.
2-You only use EJB if you want its advantages, you�re never required to.
3-No way.
4-For EJB WebLogic is far away better.
5-yes, I�d use iPlanet like web server(servlet, jsp, CGI) and weblogic like an app server (EJBs).
6-yes.
This is a great article about how and when to use EJB: http://www.javaworld.com/javaworld/jw-10-2000/jw-1006-soapbox.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: y use EJB???