Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

y use EJB???

 
neeti ravi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
gupta boddu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic