aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Questions