Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Interface in EJB  RSS feed

 
Chandan Ghosh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!I am a new member.
Can anybody tell me -
Why do we use interfaces in EJB to access the bean class? Why can't we directly access it?
 
Nadeem Awad
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Chandan,
No body is allowed to access the bean class directly except the container, because it intercepts every call to the been to step in and add its services, like security, transactions and persistence.

I suggest that you read a Tutorial or a book to get you started, you can try Sun's J2EE 1.4 Tutorial, or Head First EJB book.
[ July 13, 2005: Message edited by: Nadeem Awad ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!