...
Följande är ett exempel på hur konfigurationen kan göras i application-custom.properties
Kodblock |
---|
# TAK configuration
takcache.use.behorighet.cache=true
takcache.use.vagval.cache=true
takcache.persistent.file.name=${base.path}/data/localCache
takcache.endpoint.address=http://ine-dit-app01:8085/tak-services/SokVagvalsInfo/v2 |
Genomföra en reset av TAK cache och resultatet rapporterat
Porten som ska användas för att ladda om TAK-cachen kan konfigureras i application-custom.properties (sen nyckel nedan).
Kodblock |
---|
vp.reset.cache.url=http://${vp.host}:23000/resetcache |
En lyckad uppdatering av lokal TAK cache resulterar i ett svar enligt nedan.
...
Kodblock |
---|
Failed to get virtualizations and/or permissions from TAK, see logfiles for details. Restore from local TAK copy... Failed to restore virtualizations and permissions from local TAK copy: c:/tmp/vp-camel/local-tak-cache.xml Reason for failure: javax.xml.bind.UnmarshalException - with linked exception: [java.io.FileNotFoundException: c:\tmp\vp-camel\local-tak-cache.xml (The system cannot find the path specified)] Init TAK cache loaded number of permissions: 0 Init TAK cache loaded number of virtualizations: 0 Init done, was successful: false |
Host: ITEM-S69608.emea.msad.sopra
Time: 2019-09-13 09:27:06
I VPs applikationslog, camel-app-vp.log, loggas motsvarande information om resultatet på en reset TAK cache.
...