• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Beans emulationg Entity Beans

 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic