• Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaBeans vs EJB

 
Fred Close
Ranch Hand
Posts: 42
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm quite new to Java and all it's related technologies, I read some introcing stuff about JavaBeans it seems to be a component like an activeX but that can be run on any kind of machine.
My question is what's an EJB : just the server side version of JavaBeans ? I suppose the answer is more complex ...
 
Arun, Shanmugham
Ranch Hand
Posts: 34
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fred,
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.
Also EJB App Servers will take care of these things automatically
1. Scalability
2. Availability
3. Security
4. Distribution etc
Arun
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fred,
JavaBeans and Enterprise Java Beans do not share anything common but the word "beans". They are two different concepts
Jave beans are inprocess components. while EJB's are not
Java beans are GUI widgets(if you do not consider JSP beans) while EJB's are server side components.
Java beans have access to most of the resources like I/O, threads, serversockets, etc. EJB's are restricted in this area.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!