• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question on EJB Object

 
Gunaselan Varathan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I am preparing for the exam and i got a basic doubt.

What is an EJB object?

since we are writting remote, home and Bean methods, which one are they reffering as ejb object.

Thanks
Guna
 
Greg Charles
Sheriff
Posts: 3002
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your remote interface extends EJBObject, but the class that implements both interfaces is generated for you by the container. It acts as a liason between the client making a call and the bean implementation that runs the business logic. The client thinks it's talking to the bean, but really it's talking to the EJBObject, which delegates calls to the bean as appropriate. This extra level allows container services to be injected into the process. Unauthorized clients never get to touch the bean implementation class, transactions can be started or suspended, resource sharing can be established, etc.
 
Gunaselan Varathan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic