Why does EJB needs two interfaces, Home and Remote
Interface?
Answers were Sorted based on User's Feedback
Home Interface is the means to connect to the container
Remote Interface is your way to link to the bean
| Is This Answer Correct ? | 15 Yes | 6 No |
Answer / deepti mehta
HOME INTRFACE:- The home interface defines methods that
allow EJB clients to create and find EJB component.
REMOTE INTERFACE:- A remote interfece defines all the
business methods of the enterprise bean that the EJB client
would invoke.
| Is This Answer Correct ? | 13 Yes | 5 No |
Answer / sitaram karancheti
Home Interface: Contains methods that are not tied to a
specific EJB instance (i.e. methods at class level), like
methods for creating removing and finding EJB instance.
Remote Interface: Contains methods tied to a specific EJB
instance, such as methods that provides the actual business
logic.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / john doe
The Home Interface is used to create an EJB Object. The Home
interface specifies the Remote interface and calls the
create(). After the EJB Object is created it will return its
reference to the Home Interface.
When a call to a function is made. The client will use this
reference and call the specific remote interface which
inturn will pass the request to the EJB Object. The EJB
Object decides which function has to be called from the EJB
| Is This Answer Correct ? | 9 Yes | 5 No |
What are different Methods and Classes written in a Session Bean
Who took over ejb?
How does legacy object mapping work?
How does ejb work in java?
What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?
Define EAR, WAR and JAR ?
What is difference between stateless and stateful?
What are the design principles for ejb?
What is the major difference SessionBean and EntityBean?
Is success EJB3.0 in the Market? IF yes just explain main differences between EJB2.0 and EJB3.0.
Why serialization is used?
In what format is the conversational data written to the disk?