GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB
Go To First  |  Previous Question  |  Next Question 
 EJB  |  Question 2 of 175    Print  
What is the difference between JavaBean and EJB

Answer posted by Mohan on 2005-05-20 08:40:04: Java Beans is intra-process component 
where as EJB is an Inter-Process component 
 
JavaBeans is particularly well-suited for asynchronous, intra-application communications among software



  
Total Answers and Comments: 10 Last Update: September 12, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 17, 2005 07:31:59   #1  
Lavanya        

RE: What is the difference between JavaBean and EJB
Java Beans architecture is meant to provide a format of general-purpose components. But Enterprise Bean Architecture is meant to provide a format of highly specialized business logic components.
 
Is this answer useful? Yes | No
May 20, 2005 08:40:04   #2  
Mohan        

RE: What is the difference between JavaBean and EJB
Java Beans is intra-process component 
where as EJB is an Inter-Process component 
 
JavaBeans is particularly well-suited for asynchronous, intra-application communications among software

 
Is this answer useful? Yes | No
July 28, 2005 11:47:45   #3  
J. P. Naidu        

RE: What is the difference between JavaBean and EJB
EJB is designed to work in distributed environment using rmi/iiop protocol where as JavaBean is standalone and works only in the same JVM. 
 
Implicit services are provided to EJb by the Container, in which it si deployed according to EJB contract but in JavaBean we need to code all these services

 
Is this answer useful? Yes | No
August 05, 2005 05:29:40   #4  
YVS RAO        

RE: What is the difference between JavaBean and EJB
Java Beans and EJBs are used for different purposes altogether, though both specifications are provided by Sun micro Systems. Java Beans are mainly meant for building extendable components and typically contain getters and setters for all its data members, along with other required functionality. EJBs are server side programs that typically implement middle layer business functionality, providing 3 - layer architecture for applications. EJBs can be Entity,Session or Message depending on the required functionality. Most of the critical services are provided by EJB containers and thus allowing the programmmer to concentrate on the business logic on hand.
 
Is this answer useful? Yes | No
September 23, 2005 05:58:28   #5  
jayakrishnan-a        

RE: What is the difference between JavaBean and EJB

java bean is a client side programme.it will be having a interface.But ejb is server side it may or may not be interface.


 
Is this answer useful? Yes | No
September 29, 2005 13:02:35   #6  
SRIRAM.N.SHARMA        

RE: What is the difference between JavaBean and EJB

To put it in simple terms...

Javabean is a reusable component. Common type of GUI components like Swing button can be quoted as an example.

EJB is also reusable component. But the difference is that the bean part of javabean is used mostly at developement time whereas bean part of EJB starts off at runtime. Regular Javabean runs in a JVM while the EJB bean runs under the control of EJB container(Server). 


 
Is this answer useful? Yes | No
October 14, 2005 06:12:42   #7  
anupam Member Since: October 2005   Contribution: 2    

RE: What is the difference between JavaBean and EJB
n clients can access on ly ejb but not java beans,java beans do not follow the archi of n tier archichtere
 
Is this answer useful? Yes | No
October 21, 2005 08:42:50   #8  
Jane        

RE: What is the difference between JavaBean and EJB

Just some notes from a book I read:

JavaBean define a model for creating general-purpose components that are typically used on the client side. Those components may or may not contain a user interface.

EJBs define a server-side component fro creating highly specialized business logic components. EJB components don't have GUI.


 
Is this answer useful? Yes | No
December 14, 2005 00:05:57   #9  
       

RE: What is the difference between JavaBean and EJB
JavaBeans- are reuseable,non-deployable components. They can't exist independently.EJB - are deployable, reuesable, server side components. They can exist independently or in integration with other components.
 
Is this answer useful? Yes | No
September 12, 2008 07:29:17   #10  
sai.pappu Member Since: September 2008   Contribution: 2    

RE: What is the difference between JavaBean and EJB

JavaBean :

1. Low-level approach for developing re-usable components for building different Java applications (Applets, stand-alone applications etc.).
2. Java Beans runs in a JVM, just like other normal java class

EJB :

1. High-level approach to build Distributed java applications & its an Re-usable server-side component

2. EJB runs under the control of EJB Container

Thanks.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape