Managing JAR Files
This section describes procedures for managing JAR files in Quantum Fabric. The following procedures explain how to import, update, and delete JAR files.
Importing a New JAR File
To import a new JAR file, follow these steps:
- In API Management, click Custom Code.
- Click the Add New button.
- In the Import JAR File window, do either of the following:
- Drag and drop the JAR file directly into the window.
- Click on Browse to add the JAR from the file directory.
IMPORTANT: Make sure that you upload a JAR file that is built using the same JDK version that you use for installing Quantum Fabric.
- Click to close the JAR Imported Successfully notification.
Updating a JAR File
To update a new version of an existing JAR file, follow these steps:
- In API Management, under Custom Code, click on the JAR file that you want to update.
- Click Update.
- In the Update JAR File window, do either of the following:
- Drag and drop the JAR file directly into the window.
- Click on Browse , select the JAR from your file directory, and click Open.
IMPORTANT: Make sure that you upload a JAR file that is built using the same JDK version that you use for installing Quantum Fabric.
Deleting a JAR File
To delete a JAR file that is not needed, you need to unlink the services that are associated with the file.
To unlink a service, follow these steps:
- In API Management, under Custom Code, select the JAR file that you want to delete.
The Associated Services section appears with a list of services that are associated with the JAR file. - Under SERVICE NAME, select the service that you want to unlink.
The Service Definition page opens.Alternatively, click View under ASSOCIATED APPS.
A list of apps that are associated with the service appears.- Select the app that you want to unlink.
Alternatively, click the ellipsis (three-dot) icon for the app, and then click Edit App. - From the list of services on the left pane, select the service that is associated with the JAR file.
The Service Definition page opens.
- Select the app that you want to unlink.
- Expand the Advanced section, and under Custom Code, click the unlink icon for the JAR file that you want to delete, and then click CONFIRM on the prompt.
- Click SAVE.
NOTE: If the JAR file is not associated with any services, the list is empty, and you can delete the file.
IMPORTANT: If the JAR file is a connector for a Java service, select a different JAR file as the connector. Otherwise, Fabric displays an error while saving the service
After all the associated services are unlinked from the JAR file, follow these steps to delete the file:
- In API Management, under Custom Code, select the JAR file that you want to delete.
- On the right pane, click DELETE.