cancel
Showing results for 
Search instead for 
Did you mean: 

How to deploy jar file for use within mapping user-defined fcn

Former Member
0 Kudos

Hi all,

I have a java class I'd like to called from a mapping user-defined function.

Here's what I've done (but hasn't worked)

1. Added 'package com.<mycompany>.xi.util.base64 to the source class file and compiled it.

2. Created a sda with a plain provider.xml file, i.e. no references were made to any other library files.

3. Deployed the sda to the xi 3.0 j2ee server successfully using SDM.

4. Under the Visual Admin tool, I see that the library was deployed successfully.

5. In the import text box in the user-defined function (design time), I enter com.<mycompany>.xi.util.base64.*.

A syntax check returns an error indicating the package could not be found.

Can anyone give me pointers as to how I can get this working?

Thanks,

--jtb

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey James,

No! That's not the right way!

What you have done is for accessing external JMS & JDBC drivers in their corresponding adapters. For the access inside a mapping user defined function, it's enough if you import the jar files.

Look at this blog and you will be very clear!

/people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi

regards,

Felix

Former Member
0 Kudos

Thanks Felix. I thought that only applied to pure java mappings.

If you're ever in town, I'll buy you a drink.

Former Member
0 Kudos

regards,

Felix

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Felix, what if we like to have the functions defined in the JAR available to all namespaces like SAP defined functions? Can we deploy the user-defined jar to the WAS such that its accessible in all namespaces? Thanks!