Adding custom JAR files
- On the LCM Applications tab, select and expand the view of the grid node where EC application is installed.
- Right-click EC <Application><version> > Grid <version> > Manage Application to display the EC Management page.
By default, the Server > Overview link page is displayed.
- Under the Alias column, click a link to the MEC nodes for adding custom jars file.
For custom channels, ensure that the custom JAR file is placed in the designated custom classpath directory of the host application where the channel is deployed.
For mappings with external JAR dependencies, you must add the required JAR file to the host application’s custom classpath to ensure proper publishing.
When publishing mappings that depend on external JAR files, you must declare the name of the JAR file in the MEC application property mapping.artifact.compile.dependencies. This configuration is essential to avoid compilation errors during the mapping build.
A dedicated interface page is available that shows node-specific metadata, including details of loaded custom files.
Note: Deploying multiple instances of the same custom JAR file is not required. A single deployment per host is sufficient, as the JAR is loaded once at the host level. - Click the Custom Files link.
- Click Add file.
- Browse to the folder location containing the custom files to upload.
For JAR files, select the .jar file, then click Open. Jar files must be in the root directory of the "Custom Files" page.
For example: D:\LifeCycle\{host name}\grid\applications\MECApplication\appdata\MecServer\custom
- Click Upload.
- Restart EC application for changes to take effect.
Note: To support old classes file, export them to custom jar instead.