on 04-10-2007 8:23 PM
Hi people!
Some of you know where is the JAR (java package) that contains the UDF type ResultList. I want to debug a UDF at Eclipse/NWDS, but I couldn't found the library that contains it. Some tip?
Thanks!
roberti
Hi,
See Micahls FAQ-- /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
Mapping-- Question 5,
5. Where can I find aii_map_api.jar to create my Java mapping?
Go to your XI server folders and use this path:
j2ee\cluster\server0\apps\sap.com\com.sap.xi.services
Inside com.sap.xi.services folder you'll find the jar file. Is this what you are looking for?
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dude,
search for the file in the instance root folder.
Or even in the /usr/ folder. You'll find it.
The List interface is in java.util package.
The ArrayList class is one of the classes that implement this interface.
...
List list = new ArrayList();
list.add("new_value");
...
for (int i = 0; i < list.size(); i++) {
System.out.println(list.get(i));
}
...
Or something like that.
Regards,
Henrique.
Hi people!
thank you for your help!
Satish, Henrique - I've already found the file What I didn't find is the class ResultList in this aii_map_api.jar file, because it's really not there.
Samarjit - Thanks for the tip, I've been ever testing like you said. But this time I was trying to test exactly with ResultList to see what was happening with my UDF.
Stefan - Perfect! It was exactly what I was searching for! Thank you very much and keep blogging!
cheers!
roberti
Hi Roberti,
When u creates a UDF with queue or context mapping that time we need ResultList.
All jar files are store in "j2ee\cluster\server0\apps\sap.com\com.sap.xi.services" in your XI installed folder.
If u try to run UDF code in Eclipse/NWDS then should remove ResultList.Instead of ResultList u can use ArrayList,Vector,HashMap to test the UDF. That java.util Package handle all collection framework objects/interface.
If u want to write a class file separately for mapping then you need aii_map_api.jar.
Cheer!
Samarjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You'll find the classes for mapping runtime in aii_map_api.jar, in your XI Box. Just search for it.
But as a tip, I always test queue UDF codes with List type. Its easier to treat and all.
Regards,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
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.