• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Questions

 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic