on 08-27-2009 12:44 PM
Hello,
I am calling a property file in java map.
I have put that xml file in same folder in which the .class file is there and zip the folder and import it in PI.
So my map is not able to call the file. Can anyone tell me what path i have to give so that map can call that file. Also i donot have access to file system.
if((null != line) && (line.equals(this.noProgressToken))){
DocumentBuilderFactory dbf = null;
DocumentBuilder db = null;
TransformerFactory tf = null;
Transformer transform = null;
FileInputStream inPropFile1 = null;
String inptxml = null;
String nextLine;
while((nextLine = inpxml.readLine()) != null ){
this.fileContent = this.fileContent + "\n" + nextLine;
}
try{ //remove ltr
dbf = DocumentBuilderFactory.newInstance();
db = dbf.newDocumentBuilder();
tf = TransformerFactory.newInstance();
transform = tf.newTransformer();
}//remove ltr
catch (Exception e) {
e.printStackTrace();
trace.addInfo("?????????????????????????????");
}
try{ //remove ltr
inPropFile1 = new FileInputStream("input_prop.xml");
}//remove ltr
catch (Exception e) {
e.printStackTrace();
trace.addInfo("{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{");
}
Done by Value map...But still not able to call property file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
how good is a property file which requires changing the SWVC on every system ?
(you cannon import anything into SWCV of PRD of PI/XI )
why not use value mapping table from ID where you can put the config values
which can be easily:
a) retrived in java mapping
b) changed on every system (dev/qat/prd)
?
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
or use this article :
Regards,
Michal Krawczyk
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.