Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB object  RSS feed

 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a newbie to EJB, and currently reading Head First EJB, and come a cross this...

When a client wants to communicate with a EJB through Biz interface, the EJB object will intercept the request and make sure that the request is legal or not. Who create these objects? Where is those reference live? I know all will be happened in the Server. But, what is the internal architecture?

Thanks in Advanced!
 
Tim Hagberg
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EJB Object that intercepts requests to your bean is a container generated object which implements your business (or component) interface, which in turn extends the EJBObject interface. The EJB Object is created when the client makes a request for one from the home object. I believe all of this will be explained in greater detail further in the book. Also, I'm assuming you're referring to EJB 2.1; if you're reading about EJB 3.0, I'm not sure how things work with that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!