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

Session Beans emulationg Entity Beans

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What are the pro's and con's of session beans emulating entity beans?

Thanks,
Srikanth.
[ December 29, 2008: Message edited by: Srikanth Reddy ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Srikanth,
Can you elaborate what you mean by emulating?

If you are talking about a thin wrapper with the exact same methods as the entity bean, I can't think of advantages. If you are talking about a higher level, I can think of a bunch.
 
Saathvik Reddy
Ranch Hand
Posts: 228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jeanne Boyarsky:
Srikanth,
Can you elaborate what you mean by emulating?

If you are talking about a thin wrapper with the exact same methods as the entity bean, I can't think of advantages. If you are talking about a higher level, I can think of a bunch.


Jeanne,

I read that Session beans that implement the SessionSynchronization interface can emulate some of the functionality of bean-managed entity beans
Also, Entity Beans are transactional objects but Session Beans are transactionally aware but are not transactional objects. What does it mean?
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An Entity EJB is a temporary object-oriented representation of a business record (aka a record in a relational database).

The record in the database is a representation of a business entity, e.g. account, customer, product, etc.

A Session EJB represents a business process that involves zero or more (business entities | records | Entity EJB).

To understand the transactional nature of each type of EJB and the EJB container, you need to understand the concept of a "transaction" in terms of business computing software.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic