Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Interest »

Re: How many instance of Entity Bean

Dimitar Stavrakov

2003-07-02

Replies:

How many instance of Entity Bean
It should be up to the container provider to decide how many instances of the bean to create. The transaction management would differ depending on how you define your entity bean in the deployment descriptor. If you define it as re-entrant then more than one client can execute operations on it at the same time and transaction, or if defined as non-reentrant then if a client makes a call on the bean, while its in a transaction, the bean will throw an exception.
 
Regards,
 
    Dimitar
 
-----Original Message-----
From: Sameer Sadanand Menon [mailto:SameerS@VIRTUSA.COM]
Sent: сряда 02.7.2003 г. 06:37
To: J2EE-INTEREST@JAVA.SUN.COM
Cc:
Subject: How many instance of Entity Bean

Hey guys,
One thing has been intriguing me for a long time.
If 3 seperate clients had to fire a findbyprimarykey(PK) on the same Entity
Bean, then how many instances of Beans are created on the same primary Key.
And how does the Transaction Manager do the Transaction Mgmt on the same.

Thanking you.

Regards,

Sameer S Menon
Virtusa Corp
 <mailto:sameers@virtusa.com> sameers@virtusa.com

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

©2008 junlu.com - Jax Systems, LLC, U.S.A.