Me again... :)

I managed to narrow down the area where things go wrong: Undeployment. 

When a node is shut down with ctrl+c JBoss undeploys all the MBeans. Naturally 
it also undeploys my custom MBean.  What seems to go wrong here is that  when 
it undeploys the ProyxFaxtoryHA  it does not only remove the one instance of 
the service from the DistributedReplicantManager but rather it removes them 
all.. 

Why do I believe this?

I tried to put a sleep() command in the stop() method of my MBean so I had time 
to reload the listContent() view of the DistributedReplicantManager while the 
MBean was being undeployed. I discovered that _all_ instances of the 
arsenal.at:service=WorkflowController disappear as soon as the _first_ cluster 
node starts to undeploy the MBean (since the ProxyFactoryHA depends on that 
MBean  I assume that it is removed before the stop() method on my MBean is 
called, and the sleep() gives me time to reload the view)... 

Consequently I tested a node failure by pulling the network cable on one of the 
nodes.. and it  _worked_  .. the cluster discovered the dead member.. the view 
in listContent() lost only the service instance of the failed node. All 
subsequent invocations were passed to the living node. No Exceptions. I 
restarted the "dead" node and reconnected it to the network. It re-joined the 
cluster, and the invocations were distributed among the two nodes again. 

That's why I am fairly certain that things go wrong during undeployment. 
Perhaps now the situation is clearer and someone can give me a hint on this? 
Thanks a lot. :)





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927111#3927111

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927111


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to