• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Advantages & Disadvantages

 
aanchal mathur
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I have recenetly started working on EJB and J2EE technology. Earlier i was more into JSP and core Java.I have read alot about the J2EE framework.But why would i want to use all the complicated API's of a J2EE framework when i can manage moe or less the same with Java BEans.Correct me if i am wrong,but is security , distributed network and performance are the main features of this framework right.Take an example,if i develop a shopping cart using JSP and J2EE.Someone please tell me the many changes when i try this shopping cart with JSP and then with J2EE.Honestly i still am nnot clear why EJB and not JAVA Beans.We talk of a distributed network,i.e our beans should be placed on different servers,what ifits a small application and all EJB's are located on the same server.Then wont the performance reduce and overhead increase.Please help me clear my concepts here.
 
Rama Raghavan
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having used JSP and JavaBeans - you may be able to answer yourself if your stuff runs (or could potentially run) on other application servers.
J2EE is attempting to provide a framework and standardization for -
Application components (JSP, servlets, EJBs)
containers (providing runtime support)
database and other resource managers (drivers).
You don't have to use EJBs to be J2EE compliant, on the contrary if you are developing per J2EE standards, then you can assume a certain behavior by providers that are J2EE compliant.
This may not your intended topic (EJB advantages/dis..), but trying to address (numerous) questions in your posting.
------------------
_________________________
Rama Raghavan
SCJP2
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See my article at http://www-106.ibm.com/developerworks/library/ibm-ejb/ for more help on this topic.

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!