Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Session Beans emulationg Entity Beans

 
Ranch Hand
Posts: 228
  • 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 ]
 
author & internet detective
Posts: 40035
809
Eclipse IDE VI Editor Java
  • 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
  • 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?
 
Ranch Hand
Posts: 2187
  • 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.
 
mooooooo ..... tiny ad ....
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic