-
1. Re: Jboss 7 Cluster org.jgroups.TimeoutException exception
ranga033 Sep 11, 2012 2:42 AM (in response to bsudhananthan)Try upgrading to the latest hibernate version, it might work.
-
2. Re: Jboss 7 Cluster org.jgroups.TimeoutException exception
bsudhananthan Sep 11, 2012 4:20 AM (in response to ranga033)Thanks for your reply rang s,
I've upgraded hibernate version from 4.0.1 to 4.1.4. But Still i'm getting the same issue.
-
3. Re: Jboss 7 Cluster org.jgroups.TimeoutException exception
bsudhananthan Sep 11, 2012 10:24 AM (in response to bsudhananthan)I found the cause for the issue.
sudhananthan B wrote:
And i enabled second leve cache as below:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="ejbPU" transaction-type="JTA">
<jta-data-source>java:/DefaultDS</jta-data-source>
<shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>
<properties>
<property name="jboss.entity.manager.jndi.name" value="java:/ejbPU/EMSEM"/>
<property name="jboss.entity.manager.factory.jndi.name" value="java:/ejbPU/EMSEMFactory"/>
<property name="hibernate.id.new_generator_mappings" value="false" />
<property name="hibernate.cache.use_second_level_cache" value="true"/>
</properties>
</persistence-unit>
</persistence>
Sorry to not mentioning it in the post, I've also enabled querycache <property name="hibernate.cache.use_query_cache" value="true"/> .
I created sample EJB application with query cache enabled. In that case timeout sending message occurs. I removed the <property name="hibernate.cache.use_query_cache" value="true"/> from persistence.xml. Now the issue disappears.
So the issue is with query caching. Please any one tell me is there any configuration i'm missing in standalone-full-ha.xml specific to query caching .
Note :
1. I didn't change any thing related to infinispan subsystem in standalone-full-ha.xml. And used the infinispan configuration as it comes along with 7.1.1.
2. I attached the sample app to reproduce the issue.
Clust.jar - Is the jar to deploy under deployments folder.
Source.zip - contains the source files.
Steps to reproduce:
i. Deploy the Clust.jar in two nodes of cluster say server1 and server2.
ii. Run the com.MyDomain.ClientEntity concurrently some four or five times.
-
Source.zip 3.7 KB
-
Clust.jar 5.8 KB
-