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. :)
/Kalle
--
Karl-Fredrik Blixt
Computer Science student at LiTH, Sweden
Homepage: http://www-und.ida.liu.se/~karbl058
Telephone: +46-(0)13-17 99 29
Cellular: +46-(0)739-87 11 03
UIN: 4744258
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]