Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes ejb question from sun Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "ejb question from sun" Watch "ejb question from sun" New topic
Author

ejb question from sun

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
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.


SCJP<br />SCWCD<br />SCEA
Thomas Hofmann
Ranch Hand

Joined: Nov 23, 2002
Posts: 72
SBs are mainly used as control (worflow) objects. EBs provide an OO view (business objects) of data in (relational)database.
Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
it is to expensive for entity bean to perform business logic.
Thomas Hofmann
Ranch Hand

Joined: Nov 23, 2002
Posts: 72
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
 
subject: ejb question from sun
 
Similar Threads
Interaction b/w Managed Bean and Web Service
A stateless session question
BMT and Session beans
Answer to this question and why ?
question about dependent injection