Java Mailing List Archive

http://www.junlu.com/

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

Re: How many instance of Entity Bean

Sameer Sadanand Menon

2003-07-02

Replies:

Hey Thanks for the inputs.
I have realised that the EJBObject is the same by invoking the isIdentical()
method.
But then what is the effect of Transactions . What happens when different
clients change the same underlying data.
Is the Transaction Manager keeping track which client changed and what?
some how all this is very cloudy for me.

Thanks & Regards,
Sameer Menon

-----Original Message-----
From: prashant samant [mailto:prashantsamant@(protected)]
Sent: Thursday, July 03, 2003 5:56 AM
To: J2EE-INTEREST@(protected)
Subject: Re: How many instance of Entity Bean


Hi,
Idealy all clients share the EJBObject which wraps the entity bean
instance.It is the EJBObject that is shared by all the clients, but only one
client can access the bean instance at a time.Therefore it should ideaaly
create only one instance.

Best Regards,
Prashant S.
----- Original Message -----
From: "Sameer Sadanand Menon" <SameerS@(protected)>
To: <J2EE-INTEREST@(protected)>
Sent: Wednesday, July 02, 2003 4:37 AM
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@(protected)
>
>
===========================================================================
> To unsubscribe, send email to listserv@(protected)
body
> of the message "signoff J2EE-INTEREST". For general help, send email to
> listserv@(protected)".

===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".

===========================================================================
To unsubscribe, send email to listserv@(protected)
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@(protected)".



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