[Installation, Configuration & Deployment] - Question about clustering
by Trooper80
Hello everybody
I deployed my application on a clustered configuration with all my EJBs clustered e.t.c. I added the Clustered annotation on each one of them. My question is "Is it possible to add all ejbs of my jar as clustered by using the jboss.xml?"
Does this descriptor below work for example(notice the *)?
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<security-domain>myRealm</security-domain>
<unauthenticated-principal>guest</unauthenticated-principal>
<enterprise-beans>
<ejb-name>*</ejb-name>
<jndi-name>*</jndi-name>
true
<cluster-config>
<partition-name>DefaultPartition</partition-name>
<bean-load-balance-policy>
org.jboss.ha.framework.interfaces.RandomRobin
</bean-load-balance-policy>
</cluster-config>
</enterprise-beans>
or do I have to add all my EJBs explicitly which is not what I want?
How can I know if an EJB is deployed as clustered? I checked the JMX console but could not find anything. The logs don't say anything. I also removed all the Clustered annotations apart from one EJB to see if there was some extra log info on that EJB differing from the rest which supposingly use the jboss.xml.
The <security-domain>myRealm</security-domain>
added each EJB to the security realm without any annotations which was very convinient since I use the same EJBs in different applications with different realms.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053407#4053407
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053407
18Â years, 10Â months
[JBossCache] - write lock timeout, but no transactions and async replicatio
by andrzejek
Hi, I got an error:
javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: getCachedProfileTO -write lock for /Profile could not be acquired after 15000 ms. Locks: Read lock owners: [Thread[233238|33238|inventory,5,Thread Group for Queue: 'weblogic.kernel.Default'], Thread[842112|42112|inventory,5,Thread Group for Queue: 'weblogic.kernel.Default']]
Write lock owner: null
(caller=Thread[951787|51787|inventory,5,Thread Group for Queue: 'weblogic.kernel.Default'], lock info: read owners=[Thread[233238|33238|inventory,5,Thread Group for Queue: 'weblogic.kernel.Default']] (activeReaders=1, activeWriter=null, waitingReaders=0, waitingWriters=0, waitingUpgrader=0))
I don't know how it's possible because cache isn't associated with transaction manager and replication is asynchronious. Could you show me the scenario in which such error will occur?
Best
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053392#4053392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053392
18Â years, 10Â months