To copy per-node activation state from one node to another, use the following rhino-console command or related MBean operation.

Console command: copypernodeactivationstate

Command

copypernodeactivationstate <from-node-id> <to-node-id>
  Copy per-node activation state from one node to another

Example

To copy the per-node activation state from node 101 to node 102:

$ ./rhino-console copypernodeactivationstate 101 102
Per-node activation state copied from 101 to 102
Warning

The target node cannot be a current cluster member (unless the node is a quorum node, as quorum nodes do not make use of this state). When the target node is started (as an event-router node), it will assume the same activation state for the SLEE, services and resource adaptor entities as the node from which the per-node activation state was copied.

Per-node activation state cannot be copied to a target node if that node already has some per-node activation state recorded for it in the database. To remove per-node activation state for a target node, see Removing Per-Node Activation State.

MBean operation: copyPerNodeActivationState

MBean

Rhino operation

public boolean copyPerNodeActivationState(int targetNodeID)
    throws UnsupportedOperationException, InvalidArgumentException,
           InvalidStateException, ManagementException;

This operation:

  • copies the per-node activation state recorded in the database for the node for which the Node Housekeeping MBean was created (see Finding Housekeeping MBeans) to the given target node

  • returns the value true if it found and copied per-node activation state, or false if it found no per-node activation state to copy.

Note The start-rhino.sh command with the Production version of Rhino also includes an option (-c) to copy per-node activation state from another node to the booting node as it initialises. (See Start Rhino in the Getting Started Guide.)
Previous page Next page
Rhino Version 2.5.0