Select to view content in your preferred language

How to make the GeoEvent service uses the updated custom transport file?

3980
2
09-29-2015 11:43 AM
MunhwanGim
Deactivated User

hi, all,

I have a difficulty to debug the custom transport code either the huge data coming in or the way to debug following GeoEvent document  (STS - Karaf).

So I mostly use the LOGGER information, however, the deployed custom jar file is not always used from the GeoEvent. I think there is something I missed, but can't figure out what order I need to. I wish it should use the updated jar file, which I copied to the folder (D:\Program Files\ArcGIS\Server\GeoEvent\deploy) and stop and start the GeoEvent.

I copied the custom transport jar file to the /deploy folder (like D:\Program Files\ArcGIS\Server\GeoEvent\deploy), and stop and start the GeoEvent Service, but sometimes GeoEvent does not use the new jar file (I am sure since the log file on karaf.log file shows from the old jar file)...

Sometime works as I expected. Is there any chache mechanism the GeoEvent uses? Then how to clean it, and force to use the new file I copied to the /deploy folder?

I am still working to find out why the missing data are in output through the custom transport and adapter.

Someone claims that the way my code implemented is not handle the socket correctly.

The data comes in as XML format through TCP. Randomly the data is filtered out and not to pass to the adapter with some junk information in between the xml.

Thanks for your help, and wish get a quick answer.

Munhwan

0 Kudos
2 Replies
JacobHays1
Emerging Contributor

I had the same problem when developing custom transports and adapters.  It seems the GeoEvent Extension maintains a cache of transports, adapters & etc which can overwrite what you just put in the deploy folder.  Here is what worked for me when deploying new jar files.

Specific to ArcGIS GeoEvent Extension 10.3.0 and 10.3.1 (not tried in other versions).  Note that I'm only doing the cache wipe on a development server and not in production, not sure what that would do if you have multiple custom production deployments.

1.  Stop the ArcGIS GeoEvent service in Windows Services

2.  Delete all folders/files in the GeoEvent cache at (..\ArcGIS\Server\GeoEvent\data\cache).  That path is relative to where ArcGIS Server is installed, in your instance (D:\Program Files\ArcGIS\Server\GeoEvent\data\cache).

3.  Replace .jar files with your new ones at (D:\Program Files\ArcGIS\Server\GeoEvent\deploy).

4.  Start the ArcGIS GeoEvent service in Windows Services

Hope that helps

- Jake

MunhwanGim
Deactivated User

Thank you, Jake.

0 Kudos