cancel
Showing results for 
Search instead for 
Did you mean: 

Javamapping accessing xml-file in jar archive

Former Member
0 Kudos

Hi all,

i'm doing a javamapping in PI 7.0 and have a xml-file to structure some configuration data. Do i have to store it in the filesystem or is there a way to read this file, if it's in the jar archive, which contains my .class files?

Sven

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

You can JAR the java classes and execute them in the Integration Repository.

Each class included in the JAR would be a new mapping like XSL(T) mappings are also used.

Greets

former_member181985
Active Contributor
0 Kudos

Hi,

You can place it in XI File System or in the JAR file itself. (it all depends on your requirement).

Tomorrow if application paramers change then you need to redeploy the JAR with new values.

Hence go with File System.

- Gujjeti.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi ,

.class file and .java only in jar file,

EXECUTE method will take input from OutBound interface using InputStream Reader.

keep your XML file in File System .

Regards,

Raj

prateek
Active Contributor
0 Kudos

How about some file lookup

https://wiki.sdn.sap.com/wiki/display/XI/FileLookupin+UDF

It would work for text file but you may change it to DOM or SAX parser coding for retieving the values.

Regards,

Prateek