Hi,
How to create and add an Agent to an existing database using a Standalone java application. I am trying the option of importing it through DXL as mentioned in this article ,but no luck. Is there any way to achieve this?
Any help or links will be very much appreciated.
Code
DxlImporter importer = session.createDxlImporter();
importer.setReplaceDbProperties(true); importer.setAclImportOption(DxlImporter.DXLIMPORTOPTION_REPLACE_ELSE_CREATE); importer.setDesignImportOption(DxlImporter.DXLIMPORTOPTION_CREATE); importer.setInputValidationOption(DxlImporter.DXLVALIDATIONOPTION_VALIDATE_ALWAYS);
try { importer.importDxl(getDXLContent(), db); System.out.println("Imported successfully"); } catch (Exception e) { System.out.println(importer.getLog()); }
DXL
Please refer the this article section "Add an agent into the existing database" for the DXL.
I am not getting any error. while I print the logs. But when I comment importer.setAclImportOption line, I am getting "Unknown element 'database'" and "Unknown element 'agent'" and so on...
Thanks & Regards,
Srinivas