SAP Java Connector (JCo) libraries are installed with Sybase Unwired Platform: JCo 3.x libraries are installed in Unwired Server and JCo 2.x
libraries with Unwired WorkSpace. This effects how you implement a custom result checker for SAP enterprise information systems (EIS).
-
Add the sapjco3.jar and sup-ds.jar files to the Java build path of the mobile application project to which you are adding the custom result checker:
This requires access to the Unwired Server installation, since it contains the sapjco3.jar file.
- From Unwired WorkSpace, right-click the project in WorkSpace Navigator and select Properties.
- If a custom result checker does not yet exist, you must add the Java Nature to the project. Select , then right-click the project again and select Properties.
-
Select Java Build Path.
- Select the Libraries tab, then Add External JARs.
- Browse to and add these JAR files, if not already in the library path:
- <UnwiredPlatform_InstallDir>\sapjco\v3\32bit\sapjco3.jar
- <UnwiredPlatform_InstallDir>\Servers\UnwiredServer\lib\ext\sup-ds.jar
- Add the custom result checker by editing the MBO definition, not when creating the MBO. For example:
- Open the mobile application project and select an existing MBO in the mobile application diagram.
- In Properties view, select Operations, the operation of interest, and click Edit.
- From the Edit Operation screen, select Edit.
- Expand Result Checker and select .
- In the Interfaces section of the New Java Class screen, remove the SAPResultChecker interface.
- Click Add and enter SAPResultChecker. Select the com.sybase.sup.sap3 SAPResultChecker.
- Enter a name for the result checker and, optionally, a package name.
- Click OK until you exit the screens, then save the project.
The Java stub file is created in the Filters folder within the project.
- Remove the sup-ds.jar and sapjco.jar files that are automatically installed to the Java build path:
- Right-click the project and select Properties.
- Select .
- Select the sup-ds.jar and sapjco.jar files that were automatically installed and select Remove.
These files have Unwired_WorkSpace in their respective paths.
- Add your custom code and deploy the project.