-
1. Re: Persisting Entites put into the Cache
manik Oct 14, 2009 7:08 AM (in response to davepleydell)You would just use the Hibernate API.
-
2. Re: Persisting Entites put into the Cache
davepleydell Oct 14, 2009 10:36 PM (in response to davepleydell)Will replication to other pc's joining the grid still occur?
Currently the data gets written into the database but it doesn't get replicated to the other pc or persisted to the other pc's database.
David -
3. Re: Persisting Entites put into the Cache
davepleydell Oct 14, 2009 11:48 PM (in response to davepleydell)"davepleydell" wrote:
Will replication to other pc's joining the grid still occur?
Currently the data gets written into the database but it doesn't get replicated to the other pc or persisted to the other pc's database.
David
Further details on the testing:
I've found that using the replication clustering mode, other pc's aren't visible but using the distribution mode I can see other nodes joining the cluster.
Also when using the cache with hibernate other nodes aren't seeing data inserted into the database via hibernate.
David -
4. Re: Persisting Entites put into the Cache
manik Oct 15, 2009 6:47 AM (in response to davepleydell)Ah, each node uses a *different* database - in that case, the Hibernate approach won't help you. I was under the impression all nodes connected to the same database instance.
For your purpose, we actually have a JPACacheStore on the roadmap which will persist stuff to a database using JPA to translate the entities to columns.
https://jira.jboss.org/jira/browse/ISPN-31
If you wish to help develop this, that would help get it out there sooner.
Cheers
Manik -
5. Re: Persisting Entites put into the Cache
davepleydell Oct 15, 2009 7:30 AM (in response to davepleydell)Is there any design or any work already been started on the JPACacheStore?
ie to give us an idea for estimating the amount of time it would take to develop.
David"manik.surtani@jboss.com" wrote:
For your purpose, we actually have a JPACacheStore on the roadmap which will persist stuff to a database using JPA to translate the entities to columns.
https://jira.jboss.org/jira/browse/ISPN-31
If you wish to help develop this, that would help get it out there sooner.
Cheers
Manik -
6. Re: Persisting Entites put into the Cache
manik Oct 15, 2009 8:18 AM (in response to davepleydell)This email thread has some info:
http://lists.jboss.org/pipermail/infinispan-dev/2009-July/000931.html