Hi,
I am using NetconfX 2.1 to commit multiple payload in my device. I have used the below code :
Properties properties = new Properties();
properties.put("host", managementAddress);
properties.put("socketTimeout", "30000");
properties.put("port", port);
properties.put("username", username);
properties.put("password", password);
Client client = new Client();
client.setup(properties);
NetconfLocalTransactionContext ctxt = (NetconfLocalTransactionContext) client.startTransaction();
String xid = ctxt.getTransactionId();
client.editConfig("candidate", file1xml, null, null, null, xid);
Thread.sleep(10000);
client.commitTransaction(ctxt);