cancel
Showing results for 
Search instead for 
Did you mean: 

ResultList - where is the JAR?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

henrique_pinto
Active Contributor
0 Kudos

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.

stefan_grube
Active Contributor
0 Kudos

You can use as well ResultListImpl which extends the class ArrayList und provides the methods addValue(), addContextChange() and addSuppress().

See my blog:

/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio

Regards

Stefan

henrique_pinto
Active Contributor
0 Kudos

Nice, Stephan.

Regards,

Henrique.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Roberti,

If u follow Stefan Grube blog then u need another .jar file <b>aii_mt_rt.jar</b>.Without this jar u can not use ResultList which u want to test with it.

Stefan -- Thanks! your blog code running successfully.

Cheers!

Samarjit

Answers (2)

Answers (2)

Former Member
0 Kudos

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

henrique_pinto
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Henrique,

This was the first place I tried to find it, but it isn't there.

This "List" type you are refering to, where is it? Did you mean

java.util.ArrayList

?

thanks.

roberti