Cloud Pak for Integration

 View Only
Expand all | Collapse all

Add External Jars to Integration Server on OCP

  • 1.  Add External Jars to Integration Server on OCP

    Posted Thu September 08, 2022 10:38 AM
    Hi,

    We have CP4I running in openshift onpremise.  We are triyng to deploy an app through pipelines.  Our app is using external jars (log4j).

    We are using a Integration Server CR (attached) where specify the bars to deploy. This works fine.
    Then we add (in the CR) the parameter spec.pod.containers.runtime.image with a reference to an image of an integration server that was previously created.

    In this image we specify from where take the jars and set in the variable "additionalSharedClassesDirectories" of override/server.conf.yaml
    the reference to the jars.
    When we do this, the bars are deployed normally, but the jars are not uploaded.
    We test the image with the jars in a local docker environment and works fine.

    There is a way to add external Jars to an Integration Server on OCP? what would be the correct way?

    Thanks!

    ------------------------------
    David Casarsa
    ------------------------------


  • 2.  RE: Add External Jars to Integration Server on OCP

    Posted Tue September 27, 2022 04:56 PM
    Edited by Peter Giathi Tue September 27, 2022 04:56 PM

    Hi David,

    You would need to create a custom image and bake the jar files into the image.

    The additionalSharedClassesDirectories will only tell the classloader what additional directories to load jar files from.
    So just for more clarification, you mentioned:
    "you add the parameter spec.pod.containers.runtime.image with a reference to an image of an integration server that was previously created"

    Have you copied the said log4j jar files onto the image ? If so where are they located on the image ? Is this the same location you are referring to that has been set in the additionalSharedClassesDirectories in the server.conf.yaml file ?




    ------------------------------
    Peter Giathi
    ------------------------------