Hi,
I am working on a utility to decode the property in node.ndf <IRTNODE_PROPERTY>. This is for changing the JDBC Property before I mgrate the code from DEV environment to QA. Settings in both these environment for JDBC Connection is different, and I would like to change those programatically.
I tried using a java code:
FileInputStream istream = new FileInputStream(“\node.ndf”); //Please change this to your path of node.ndf where you created the JBDC Connection
XMLCoder coder = new XMLCoder();
Values values = new Values();
values = coder.decode(istream);
java.util.Enumeration eNum = values.sortedKeys();
while(eNum.hasMoreElements()){
String decodedJDBCProperties = (String)eNum.nextElement();
String decodedJDBCProperty = values.getString(“IRTNODE_PROPERTY”);
System.out.println(decodedJDBCProperties +“—”+decodedJDBCProperty);
}
Above didn’t work
Even I tried using the flow steps:
pub.file:getFile() //Read the file node.ndf
pub.string:bytesToString() //converto to String
pub.document:XMLValuesToDocument //convert the string into XML Document
pub.string:base64Decode//decode
pub.string:bytesToString//convert decoded string into String
This works, but not 100%, it adds some special character between ASCII chars of the properties decoded.
Please help, if anyone has tried this.
Thanks in Advance