• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

HFEJB, p104, no dumb question - RemoteInterface

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic