on 04-09-2010 4:44 PM
Hi All,
I have a program (java mapping) in which i want to access some values from a file. Hence i have the file as part of my imported archive (jar)
But seems in PI, it doesn't recognize the file.
Ex.
my jar file contains
myprogram.java
myprogram.class
myfile.txt
and myfile.txt is being refereed by the program (it works in standalone) but in PI it fails to find the file
Any comments? I am on PI 7.1 EHP1
Note: I can place the file on the PI server directory and refer it in my program but I dont want to do so and want to make the file as part of the imported archive only.
~~ Shabz
Hi,
Though it is technically feasible (using ResourceBundle APIs or equivalent), SAP strongly recommends not to access files from within mappings (could create perf/handler/etc issues) ... Or if you can't prevent it, you have to make sure it won't affect system stability especially during heavy load periods (some sort of custom caching mechanism through a static map ?)
Rgds
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems the best way would be to place the files on the server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What things are you reading from this file ?
CSY
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.