• Post Reply Bookmark Topic Watch Topic
  • New Topic

business object vs ejb  RSS feed

 
Maalti Iyer
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I'm new to EJB world. I was wondering, if someone could explain me the difference between an EJB and a business object.
Thanks for your time.
Maalti Iyer
 
Vinod John
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Maalti Iyer:
Hi
I'm new to EJB world. I was wondering, if someone could explain me the difference between an EJB and a business object.
Thanks for your time.
Maalti Iyer

The basic difference are,
EJBs can be accessed locally or remotly but plain BO can only be accesses locally.
EJBs are created, managed and destroyed by the application server. In addition the application server by default provide the EJB with services like pooling,transaction management, security etc. But in the case of a BO the developer is expected to implement all the features.
 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the definiation of Business Objects (BO)?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the definiation of Business Objects (BO)?

I'm not aware of any "official" definition for the term "business object" but I think of business objects as any object that provides application or domain specific services (anything from calculations to persisting domain objects). Technically the business object can be an EntityBean, a SessionBean, a DAO, or a plain old Java class.
You could also check out what people have said about business objects in the wiki-page.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the Session Facade (core J2EE pattern) description has "business objects" just like I mentioned.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!