aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Session Beans emulationg Entity Beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Session Beans emulationg Entity Beans" Watch "Session Beans emulationg Entity Beans" New topic
Author

Session Beans emulationg Entity Beans

Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
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

Joined: May 26, 2003
Posts: 30916
    
158

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Saathvik Reddy
Ranch Hand

Joined: Jun 03, 2005
Posts: 228
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

Joined: Apr 16, 2008
Posts: 2187
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
 
subject: Session Beans emulationg Entity Beans