Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

HFEJB, p104, no dumb question - RemoteInterface

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Page 104 says:

Component = Business = EJBObject

Also, isnt the ComponentInteface = RemoteInteface ??

Can someone pls. clarify ?

Thanks in advance.
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when they say component interface, they mean a reference to your EJBObject, since u cannot have a reference to your bean.

When they say Component = Business = EJBObject
for the Business part, they are referring to the component interface b/c it is the only interface that can have business methods (for Session Beans).

The "remote interface" is different from the component interface. Your "remote component interface" extends the EJBObject interface, which then extends the Remote interface.

However, if u are talking about if the remote Component interface is the same as the component interface, yes it is (in a remote view)
As you will see later, we are allowed to have local componet interfaces also.
 
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EJB 1.0 and 1.1 there were no local beans.
When SUN specified them, there were only home interface (javax.ejb.EJBHome) e remote interface (javax.ejb.EJBObject).
With EJB2.0, they created local beans. For home interface, they specified the local home interface (javax.ejb.EJBLocalHome) but it would be awful if the another interface had called local remote interface.
So SUN started referencing the both remote and local interfaces to component interface.
 
Manzoor M
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ryan & Vinicius for the explanations.

I didnt know that Component Interface can be local & remote and I thought it was always Remote.

I will have to read thru the part that differentiates between local & remote component interface and Remote interface.
 
Honk if you love justice! And honk twice for tiny ads!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic