[Clustering/JBoss] - Re: ejb proxies only contain nodes at deploy time
by bstansberry@jboss.com
OK, thanks for the details. I was hoping you'd tell me something that would tell me where you're going wrong, but you've basically got a regular client that does JNDI lookups of clustered EJBs. Shouldn't matter whether you do a lookup in local JNDI or HA-JNDI, either way you should get a proxy that tracks changes in the cluster topology.
A simple explanation would be that the servers aren't clustering properly, but in some cases you are getting proxies that can communicate with both servers, so that tells me that there is communication. And once a server knows about another, if the communication is cut off the surviving server should detect that and update its proxies. And you're not seeing that either.
I'll have to think a bit about this to try to come up with an approach to diagnosing the issue.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971319#3971319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971319
19 years, 7 months
[Clustering/JBoss] - Re: Jgroups jboss cache deadlock
by bstansberry@jboss.com
In general, you don't want to synchronize on the cache to do a put. I don't know your use case in enough detail (i.e. who's putting what where when) to absolutely say you shouldn't, but JBC already provides concurrency control at the individual Node level.
I don't know what your isCacheActive() call does; perhaps some synchronization is needed there.
Blocking in the GroupRequest for a while during cache replication is perfectly normal. The caller thread sends the RPC call out to the cluster, and then blocks waiting for responses that come in separately from each cluster node. Seeing a thread blocking there in a thread dump means nothing. Seeing the thread continually blocking there for a long time over more than one thread dump tells you that for some reason it's taking a while for responses to come back. The issue then is why it's taking a long time to get responses, which could be all sorts of reasons.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971310#3971310
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971310
19 years, 7 months