----- Original Message ----- 
From: "Hemant Khandelwal" <[EMAIL PROTECTED]>
To: "Tinou Bao" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 12:38 PM
Subject: Re: 1.0 vs. 1.1 vs. 2.0


Hi Tinou,

The changes in the specification does impact the way one writes an
application. It also have bearing on the support from the container vendor.
For example in EJB1.1, entity beans are modelled as coarse grained entity,
since finer granularity will involve overheads of a possible remote call,
transaction and security check. So if a container vendor provides
optimization in some way - and many do so - performance and design of your
application will be impacted.

EJB2.0 intrduces the concept of Local entity and allows for
pass-by-reference semantics. A client to a bean and the bean can modify the
same data, while in remote programming model, where only pass-by-value is
allowed, such sharing of data is not possible. The introduction of
relationships, and subsequent support from vendors will greatly impact the
application written in EJB2.0 programming model.

Regards,
Hemant
www.pramati.com

----- Original Message -----
From: "Tinou Bao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 16, 2001 10:51 AM
Subject: 1.0 vs. 1.1 vs. 2.0


hi,

my understanding:

1.0: entity beans represents rows in database - thus fine grain

1.1: entity beans should be coarse grain

2.0: remote entity beans should be coarse grain, local entity beans can be
fine grain.

Question 1:
with respect to 1.0 and 1.1, when designing your application do you design
base on the spec. you will implementing your app in? for example, if you
have order and line item concepts do you make them two entity beans when
using websphere because websphere only supports 1.0 specs but would design
it as one order entity bean with line item dependent class when using
weblogic because weblogic supports 1.1.  in other words, do container
vendors implement their containers differently because of the change in
recommendation or is this just a change in best practices?

Question 2:
2.0 specs says fine grain concepts (e.g., line item) can be either local
entity bean or dependent class.  which is the preferred way?

Thanks.

--
Tinou Bao
http://www.tinou.com
mailto:[EMAIL PROTECTED]

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Reply via email to