• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFEJB, p104, no dumb question - RemoteInterface

 
Manzoor M
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.
 
Dan T
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.
 
Eusebio Floriano
Ranch Hand
Posts: 237
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic