268 Chapter 7 Using Kalong
16 e.printStackTrace();
17 }
18 finally
19 {
20 if( iKalong.prepare() )
21 {
22 iKalong.commit();
23 } else
24 {
25 iKalong.rollback();
26 }
27 }
This migration strategy consists of a single transfer. The connection to
the destination agency is opened using method startTransfer. The return
value is an object that is used to identify this transfer when sending additional
messages. The first message that is sent now must be an SATP header, which
transmits the agent’s name and some other impor tant information about
the agent to the destination agency. The second parameter of this method
is the header command, which specifies which process will be executed at
the end of this transfer at the destination agency. In this case, NOOP stands ...