-
1. Re: clustered ejb3 entity beans replication
asafz Feb 14, 2006 1:05 PM (in response to asafz)I'm still dont knoe hoe to replicate the cache with clusterd ejb3 entity beans.
its just look like the entitymanager is ignoring the treeCache and nothing is written to it although I used the same example as the 4.0.3 admin guide.
does anyone know how to make it work?
some can add a working persistence.xml file that make the cluster ejb3 entity bean work with the treeCache?
thanx, -
2. Re: clustered ejb3 entity beans replication
ben.wang Feb 15, 2006 11:48 PM (in response to asafz)Couple of suggestions:
1. Make your your machine is setup for clustering (i.e., multicast is working). You can check either the clsutering of jgroups wiki for this
2. In jboss-4.0 src, under ejb3 modulem there is a unit test org.jboss.ejb3.test.clusteredentity/* that test this functionality.
-Ben -
3. Re: clustered ejb3 entity beans replication
asafz Feb 17, 2006 4:49 AM (in response to asafz)thanx ben,
1. my cluster is working fine, I tested httpSession replication and slsb and sfsb load balancing and everything works fine.
2. I looked at the unit test code where can I find the org.jboss.ejb3.test.clusteredentity.EntityTest implemetation class bean?
(this is a session bean and I can only see the remote interface but i want to see the bean code to understand the testing)
thnx, -
4. Re: clustered ejb3 entity beans replication
ben.wang Feb 18, 2006 12:24 AM (in response to asafz)Look for clusteredentity-test.jar in the build-test.xml and you should see.
-Ben -
5. Re: clustered ejb3 entity beans replication
asafz Feb 22, 2006 8:13 AM (in response to asafz)thanx ben,
my problem is solved.
the problem was that in my persistence.xml i used :
org.jboss.ejb3.entity.TreeCacheProviderHook
jboss.cache:service=EJB3EntityTreeCache
like the example in the admin guide but actually I should have used:
org.jboss.ejb3.entity.TreeCacheProviderHook
jboss.cache:service=EJB3EntityTreeCache
now its work fine, -
6. Re: clustered ejb3 entity beans replication
asafz Feb 22, 2006 8:17 AM (in response to asafz)sorry about this:
what i ment was that the property:
cache.provider_class
should be hibernate.cache.provider_class
and treecache.mbean.object_name should be hibernate.treecache.mbean.object_name
another question:
can I use the clustered treeCache for R/W or only for Read Only data?
what is the recommended way to use it?
thnx,