on 02-19-2009 10:17 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.