wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes EJB Questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Questions" Watch "EJB Questions" New topic
Author

EJB Questions

Malli Raman
Ranch Hand

Joined: Nov 07, 2001
Posts: 312
Hi,
One of my friend asked this questions to me which i am not able to answer. Can you please help if you have any idea about this.
1 ) Why are we using two different interface (Remote Interface(Business Logic) and Home Interface (Life cycle methods). Actually clients have the access of two interface methods then why we need to use this as two different interfaces.)
2) If we are using local interface and remote interface then how they are implemented in the EJB Object class in the application server.
Thanks & Regards,
M.S.Raman
Anthony Watson
Ranch Hand

Joined: Sep 25, 2003
Posts: 327
The component interface is for instance specific methods where the home interface is for methods where you do not need a specific bean instance.
How your interfaces are implemented depends on the EJB container. Different containers will produce different code. As a bean developer, you do not need to worry about how the implementing classes work. That's part of the beauty of EJB, you work through interfaces and just assume everything will be fine.


Anthony W.<br />MCP, SCJP 1.4, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
Malli Raman
Ranch Hand

Joined: Nov 07, 2001
Posts: 312
Originally posted by Anthony Watson:
[QB]The component interface is for instance specific methods where the home interface is for methods where you do not need a specific bean instance.

Hi,
I understand your point. Please clarify what is component interface (did u mean it as a remote Interface).
Thanks & Regards,
M.S.Raman
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Please clarify what is component interface (did u mean it as a remote Interface).
Yes, another name for the Remote Interface is Component Interface. This terminology is actually more appropriate because it describes the purpose of the interface and it applies equally to both remote and local interfaces.
Malli Raman
Ranch Hand

Joined: Nov 07, 2001
Posts: 312
Originally posted by Chris Mathews:
Please clarify what is component interface (did u mean it as a remote Interface).
Yes, another name for the Remote Interface is Component Interface. This terminology is actually more appropriate because it describes the purpose of the interface and it applies equally to both remote and local interfaces.


Thanks,
M.S.Raman
 
Don't get me started about those stupid light bulbs.
 
subject: EJB Questions
 
Similar Threads
Can we have more than one WSDL file for same service
WSAD (IBM Universal Test Client) problem
Why EJB need interface
Why do we need Home and Remote Interface?
Home and Remote Interface