I downloaded GeoLite City database and I am able to access the database with Java to get the corresponding location information of an IP address in the following way:
File file = new File("C:\\GeoLiteCity.dat");
LookupService lookup = new LookupService(file, LookupService.GEOIP_MEMORY_CACHE);
Location location = lookup.getLocation("123.123.12.34");
My question: opening the file for each an IP address in the above way is obviously not desirable in a production environment. How can I use this database in a production way (assuming the use of GeoLiteCity.dat)?
Any input or pointer is really appreciated.
Thanks and regards!