Using the Correct Java Connector Version For the SAP Custom Result Checker

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).

  1. 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.
    1. From Unwired WorkSpace, right-click the project in WorkSpace Navigator and select Properties.
    2. If a custom result checker does not yet exist, you must add the Java Nature to the project. Select Project Natures > Java > OK, then right-click the project again and select Properties.
    3. Select Java Build Path.
    4. Select the Libraries tab, then Add External JARs.
    5. 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
  2. Add the custom result checker by editing the MBO definition, not when creating the MBO. For example:
    1. Open the mobile application project and select an existing MBO in the mobile application diagram.
    2. In Properties view, select Operations, the operation of interest, and click Edit.
    3. From the Edit Operation screen, select Edit.
    4. Expand Result Checker and select Custom > Create.
    5. In the Interfaces section of the New Java Class screen, remove the SAPResultChecker interface.
    6. Click Add and enter SAPResultChecker. Select the com.sybase.sup.sap3 SAPResultChecker.
    7. Enter a name for the result checker and, optionally, a package name.
    8. Click OK until you exit the screens, then save the project.
      The Java stub file is created in the Filters folder within the project.
  3. Remove the sup-ds.jar and sapjco.jar files that are automatically installed to the Java build path:
    1. Right-click the project and select Properties.
    2. Select Java Build Path > Libraries .
    3. 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.
  4. Add your custom code and deploy the project.