Ha, I figured it out (talking to myself seems to help a great deal ;) No 
offense I know you are most likely on the other side of the planet and are 
probably still asleep while I am writing this) 

Anyway... I had a look at the ProxyFactoryHA , and came across this:


  | 151    protected void containerIsAboutToStop ()
  | 152    {
  | 153       if( target != null )
  | 154       {
  | 155          target.setInvocationsAuthorization 
(HATarget.DISABLE_INVOCATIONS);
  | 156          target.disable ();
  | 157       }
  | 158    }
  | 

After some more asking google for sourcecode I found out that target.disable() 
does a
 this.partition.getDistributedReplicantManager().remove (this.replicantName); 
  |  
 which  - it seems to me - removes all replicas  (removes it's localReplicant 
and propagates the remove operation to all other nodes on the cluster) ... 

I take it this is not a bug, but rather the expected behavior for this class ?  
As I said I am pretty new to this and could not find much documentation... 
anyway..  I discovered eralier that the  stop() and destroy() methods of the 
ProxyFactoryHA seem to be sufficient to disable the replicant anyway.. so I 
simply made a new subclass which does nothing in the containerIsAboutToStop()  
method: 


  | public class CustomProxyFactoryHA extends ProxyFactoryHA {
  | 
  |     protected void containerIsAboutToStop() {
  |             //do nothing
  |     }
  | 
  | }
  | 

and updated my jboss-service.xml file: 


  |   <mbean code="at.arsenal.spirit.commons.jndimbean.CustomProxyFactoryHA" 
name="jboss.test:service=ProxyFactory,name=HAService,protocol=jrmpha">
  | ........
  | 


.... now everything seems to work absolutely smoothly. Turn off node, switch 
node back on... everything behaves as I would expect it to.

Looks like this solved my problem. Or am I missing something else which I could 
have broken with this patch?  :-)

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

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


-------------------------------------------------------
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