cancel
Showing results for 
Search instead for 
Did you mean: 

Prob in calling a property file in java map

Former Member
0 Kudos

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("{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{");

}

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Done by Value map...But still not able to call property file

MichalKrawczyk
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hello,

Thanks for the sugeestion.

Can you give any code how to call value map in java map.

Thanks and Regards

Hemant

MichalKrawczyk
Active Contributor
0 Kudos

hi,

have a look at this blog:

/people/sukumar.natarajan/blog/2006/10/23/accessing-value-mapping-defined-in-directory-using-java-functions

Regards,

Michal Krawczyk

MichalKrawczyk
Active Contributor