A word about the endorsedjars directory

1. Introduction

The ConnectPlaza® Agent does not ship with every .jar file your environment needs. Drivers and libraries that are specific to your systems, such as the JDBC driver for your database or the Java libraries of your OpenEdge installation, are not part of the product. You add them yourself to the endorsed directory.

Everything in this directory is yours: you place it there, you maintain it, and you are responsible for it.

2. What the endorsed directory is

The endorsed directory is located in the installation directory of your ConnectPlaza® Agent. From inside the active agent directory you reach it through the jars/endorsed symbolic link. Both paths lead to the same files.

Every .jar file in this directory is added to the classpath of the ConnectPlaza® Agent. The classpath is built from the connectplaza.process.jvm.classpath.endorsed.jars property, which by default is ./jars/endorsed/*.jar. See ConnectPlaza® JVM process properties for the full list.

Typical contents are:

  • The JDBC driver for your Analyze database, for example the Microsoft SQL Server, Oracle or MariaDB driver.

  • The Progress OpenEdge .jar files needed by the OpenEdge Pickup, Gateway and Sender.

  • Custom .jar files that your own interfaces depend on, for example the classes used for marshalling by the object transformers.

The directory is a symbolic link to a location outside the agent version directory. When you update the ConnectPlaza® Agent to a newer version, your files stay where they are and the new version picks them up. See Explaining the directory structure for the layout.

3. Your responsibility

We deliver and update the files that come with the ConnectPlaza® Agent. We do not do that for the files you place in the endorsed directory. This means that you:

  • Obtain the .jar files from the vendor of the driver or library, and make sure that you are licensed to use them.

  • Choose a version that works with your database, your OpenEdge version and the Java version of your ConnectPlaza® Agent.

  • Update or replace the files when your database, driver or library changes, and when the vendor publishes a security fix.

  • Keep a copy of the files outside the installation directory, so that you can restore them after a failed change.

Because these files are on the classpath of the ConnectPlaza® Agent, a wrong or outdated .jar file can affect more than the one interface that uses it. When the agent behaves unexpectedly after a change, check this directory first.

A change in the endorsed directory does not take effect until you restart the ConnectPlaza® Agent.

4. Good practice

  • Add one .jar file per library, with the version in the file name, so that you can see later which version is installed.

  • Do not keep two versions of the same library in the directory. Both end up on the classpath, and which one is used is not something you should rely on.

  • Remove files you no longer need, but only after you have checked that no interface uses them.

  • Do not remove the directory or its symbolic link when you clean up an installation. It holds your files and is deliberately kept apart from the agent version directory.

Custom .jar files that you built against the ConnectPlaza® Agent are not guaranteed to keep working after an upgrade. When we migrated these files automatically in release 4.3, we kept a backup of each original in this directory and strongly advised rebuilding them against the new release. Rebuild your own files after an upgrade, and remove the old builds and backups once the new ones work.