This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb question from sun

 
Timber Lee
Ranch Hand
Posts: 157
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What type of enterprise bean is used to embody business objects?
A. javax.ejb.EnterpriseBean
B. java.rmi.Remote
C. javax.ejb.SessionBean
D. javax.ejb.EntityBean
its answer is D, but the business logics are also contained in stateless bean.
 
Thomas Hofmann
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SBs are mainly used as control (worflow) objects. EBs provide an OO view (business objects) of data in (relational)database.
 
Timber Lee
Ranch Hand
Posts: 157
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is to expensive for entity bean to perform business logic.
 
Thomas Hofmann
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, the usage of an entity bean as business object is more expensive than a plain java object, because an entity bean provides TX and security (and distibution [remote EBs])features. But according to your question entity beans are used as business objects and session beans for control logic -> session facade pattern.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic