Using the Adapter SDK in Mashery Local with Multiple Processors in One Zip Package

To use the Adapter SDK in Mashery Local with multiple processors in one zip package, follow the steps below:

Procedure

  1. Create a new Maven project "CustomAdapter2" in Eclipse, then add dependencies and class, as described in Using the Adapter SDK in Mashery Local with a Single Processor.
    The project layout should look like the following:

  2. Create a new Maven Project "CustomAdapter3" in Eclipse, then add dependencies and class, as described in Using the Adapter SDK in Mashery Local with a Single Processor.
    The project layout should look like the following:

  3. Build the projects in the folders, for example, /home/beta/work_diysdk/CustomAdapter2/ and /home/beta/work_diysdk/CustomAdapter3/:
    cd /home/beta/work_diysdk/CustomAdapter2/
    mvn package
     
     
    cd /home/beta/work_diysdk/CustomAdapter3/
    mvn package
  4. Use a simple zip command to package the project in the folder, for example, /home/beta/work_diysdk/CustomAdapter/target/:
    cd /home/beta/work_diysdk/CustomAdapter/target
    cp /home/beta/work_diysdk/CustomAdapter2/target/CustomAdapter2-1.0.jar .
    cp /home/beta/work_diysdk/CustomAdapter3/target/CustomAdapter3-1.0.jar .
    zip CustomAdapters-1.0.zip CustomAdapter-1.0.jar CustomAdapter2-1.0.jar CustomAdapter3-1.0.jar
  5. Unload the zipped package using a Jenkins build job.
  6. Apply the Custom Processor on the Endpoint using the TIBCO Cloud Mashery dashboard.