jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jared Graber" <jared.gra...@IACcap.com>
Subject RE: Multiple connections to database repository
Date Tue, 24 Jun 2008 19:27:22 GMT
Are you saying that the read only applications will generate their own jackrabbit cache so
that the next export will export old data?  
	If so, how would I clear that cache?  Would logging out of the repository not do it?

If not:
I think if the database is always up to date, then I should be fine.  
The purpose of the 5 read only applications is to retrieve a snapshot in time of the repository
and cache it.   Once the data is exported, it doesn't need to stay in synch with repository.
 It is expected to deviate.  At some point in the future, the applications would be notified
that they should update the cache by connecting to the database repository and exporting the
data from it.


-----Original Message-----
From: Brian Thompson [mailto:elephantium@gmail.com] 
Sent: Tuesday, June 24, 2008 2:28 PM
To: users@jackrabbit.apache.org
Subject: Re: Multiple connections to database repository

The database is always kept up to date, but Jackrabbit maintains a cache.
In your example, the 5 "on-demand" applications would read outdated data
from the cache, AFAIK.

The standard for handling that type of situation is to set up the 5
on-demand apps to connect to the read-write app - that way, only the one app
runs the repository.


On Tue, Jun 24, 2008 at 1:08 PM, Jared Graber <jared.graber@iaccap.com>

> Based on an old thread (May 2006), I found that you cannot have 2
> different applications accessing the same database repository and expect
> them to see each changes made by each other.
> What if only 1 application was writing to the repository?
> Example:
> 1 application that is reading and writing to the repository.
> 5 applications that on demand will make their own connection to the
> repository in order to export the data, and then logout.
> Is the database always kept up to date (which I think would make this
> possible) or does jackrabbit keep data in memory for a while before
> storing it in the database?
> Thanks,
> Jared
View raw message