Skip to Content
0
Former Member
Nov 20, 2013 at 04:58 PM

Change Partition during using import

21 Views

Hi,

I want to change the Partition during import from one Environment to another.

I tried below code in import rule set but its not working please help.

{

Partition toPartition = jcsSession.getPartitionByName("GLOBAL");

for (java.util.Iterator it = jcsImportRuleSet.getObjects().iterator(); it.hasNext(); )

{

Object o = (Object) it.next();

if (o instanceof PartitionableObject )

{

((PartitionableObject) o).setPartition(toPartition);

}

}

}