File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "y use EJB???" Watch "y use EJB???" New topic

y use EJB???

neeti ravi

Joined: Mar 18, 2001
Posts: 9
Hi guys
can u please 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
Arun, Shanmugham
Ranch Hand

Joined: Apr 05, 2001
Posts: 34
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.

Sun Certified Programmer for Java2 Platform
gupta boddu

Joined: Jul 14, 2001
Posts: 9
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).
This is a great article about how and when to use EJB:
I agree. Here's the link:
subject: y use EJB???
It's not a secret anymore!