Karl-Fredrik Blixt <[EMAIL PROTECTED]> wrote:
>Reddy R wrote:
>>
>> This is a general EJB question. If there are two EJB servers (with same
>> application logic) talking to a single database. Persistent entities will be
>> cached from the same database. If one server changes the database with an
>> entity how does the other one update its cache.
>>
>It doesn't, unless your servers are working together in a cluster (which jBoss
>is going to do in the future :). If you have two generic EJB servers persisting
>to the same database you can only be sure of correct entities by telling them
>that the database is shared (and in effect forcing them to load the entity data
>before each invocation). In doing so you, of course, have no use of the cache
>any longer, but that's the way life goes when it comes to shared databases. :)
..and also, I guess, if you want to use cascaded updates or deletes,
triggers, or stored procedures.
--
Justin Forder
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]