on 03-31-2014 11:53 AM
Hi,
We have a customized translation utility developed in java and packaged into a jar. However, we are not able to call the classes and functions of this jar file from the XSLT. Does anyone know where should such jar files be dropped in the MII/Netweaver classpath so that it can be referenced from the XSLT file? We are on MII v14.0.
Hi,
you have to place it into the system class loader. This is done via the extension class loading mechanism of Java (google for it). Same you would use if you want to use a standard xslt engine
like Xalan with its extension functions. You have to place the Jar into the ext folder of the JRE used by
NW/MII.
Cheers,
Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
As already answered by other experts, you can re-package (or probably use it as is if it is designed in teh same fashion) as a custom action and uploadit in MII 'System Resources -> Custom Actions' section. Then deploy the custom action and check in the log viewer if the deployment was done successfully without errors.
If the custom action was successfully deployed, you would be able to see the action blocks in the MII workbench when you try to create/edit a transaction. You can then use these blocks and pass the related input parameters and get the result back.
Link to a tutorial about using/writing custom actions:
https://help.sap.com/saphelp_mii122sp03/helpdata/en/4c/8cee70f2bd60c5e10000000a15822d/content.htm
Hope this helps!
Regards,
Saumya Govil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil
I do not think there is any one location where you can place your jar file and access it from with XSLT which is being called within an MII transaction.
To call your application jar best option is to create a custom action which calls your XSLT and has the jar as dependency. Then most probably you will get access to the classes in your localization jar.
I cannot think of any other option right now.
Regards
Partha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.