Markus Karg wrote:
> Another point is, I still do not know why you think that it is not ok to
> have client caching. What is the point where my proposal would interfere
> with EJB 1.1 spec? If GenIC would produce code to only do getXXX on an
> entity bean only once in a transaction, what could be wrong? For the client,
> nothing changes: It talks to a EJB 1.1 bean by unchanged interfaces, the
> data is the same (for data cannot change inside a transaction to a CMP
> entity bean), and for the server also nothing changes. Or is there a
> limitation in EJB 1.1 spec that tell that a container may not cache CMP
> entity bean calls in a transaction (I do not speak of caching of SBs or
> caching over transaction boundaries).
>
Hello Markus,
I think we have a misunderstanding about what we call
"client caching". For me, client caching is caching data in the
"EJB client" application side, which is currently not achieved
since EJB clients manipulate "remote references" to the EJB
objects containing the data, in the EJB server. So the cache
is maintained in the EJB server.
I read at least one article about client caching, but the proposed
solution was quite not satisfying, leading to some uncoherency problems...
Anyway I think that what you are speaking about is caching data
in the EJB instances (achieved by the container in the EJB server). This
caching is already done in the scope of a transaction. To maintain this
cache across transactions we have the dirty flag which should
be currently "manually" positionned, since in EJB1.1, any method can
modify a CMP field. In EJB 2.0, getXXX and setXXX methods will be
generated, and setXXX will be the only
way to modify the XXX CMP field, thus the dirty flag will be managed
automatically. So I 'm not sure to understand your proposition, is it
to generate setXXX and getXXX methods (i.e. accessor methods
as specified in EJB 2.0) for each XXX CMP field ?
François
--
==================================================================
Francois EXERTIER Evidian (Groupe Bull)
1, rue de Provence, BP 208, 38432 Echirolles cedex, FRANCE
mailto:[EMAIL PROTECTED]
http://www.evidian.com/jonas http://www.objectweb.org/jonas
Tel: +33 (0)4 76 29 71 51 - Fax: +33 (0)4 76 29 77 30
==================================================================
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".