• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

EJB Questions

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic