Transact temporary folder automatic cleanup
You can configure the automatic cleanup for Transact temporary folders to free disk space from temporary folders created over time.
Property file configuration
Follow these steps to configure the properties files.
-
Uncomment the following property from the
applicationContext.xml to initiate the service.
<import resource="classpath:/META-INF/applicationContext-tempfolder-cleanup.xml" />
-
Configure the following properties in the
dcma-tempfolder-cleanup.properties file, located at
<Transact_Folder>\Application\WEB-INF\classes\META-INF\dcma-tempfolder-cleanup.
Property
Description
Example
tmp_cleanup.deletablefolders
The list of folders within SharedFolders that should be deleted. Separate multiple folder names using a semicolon (;).
tmp_cleanup.deletablefolders=web-service-folder;scannedImages;upload-batch-folder;temp;
tmp_cleanup.cleanup_age
Specifies in hours how old a file must be before it will be deleted.
tmp_cleanup.cleanup_age=24
This means that files will be deleted 24 hours after their creation.
tmp_cleanup.cronjob_expression
This property uses a cron expression to determine when the cleanup job should run.
tmp_cleanup.cronjob_expression = 0 0 12 * * ?
This means the cleanup job will run every day at 12 PM.
The properties only apply to temp folders contained in SharedFolders.
Folders outside of SharedFolders
The Ephesoft\temp and Ephesoft\JavaAppServer\temp folders must be cleaned manually. Follow the steps below to clean them:
- Stop Transact.
- Delete all the files in the Ephesoft\temp and Ephesoft\JavaAppServer\temp folders.
- Restart Transact.