GeoIP**(1)** work fine, but, GeoIP2 dont work, i’m using this samples from maxmind (https://github.com/maxmind/GeoIP2-java)
Im loading GeoIP2-City.mmdb with:
[PHP]public void onAppStart(IApplicationInstance appInstance) {
…
try {
File dbGeoIP2City = new File(Bootstrap.getServerHome(Bootstrap.CONFIGHOME)+File.separatorChar+“GeoIP”+File.separatorChar+“GeoIP2-City.mmdb”);
GeoIP2_reader = new DatabaseReader.Builder(dbGeoIP2City).withCache(new CHMCache()).build();
} catch (Exception e) {
getLogger().error("Error loading plugins: "+e.toString());
}
}[/PHP]
and this is for print
[PHP] try {
InetAddress ipAddress = InetAddress.getByName(“MY_IP”);
CityResponse response = GeoIP2_reader.city(ipAddress);
Country country = response.getCountry();
Subdivision subdivision = response.getMostSpecificSubdivision();
City city = response.getCity();
String _User_Country_Name = country.getName();
String _User_Country_Name_Iso = country.getIsoCode();
String _User_Country_City = city.getName();
String _User_Country_Region = subdivision.getName();
String _User_Country_Region_Iso = subdivision.getIsoCode();
getLogger().info("_User_Country_Name: " + _User_Country_Name);
getLogger().info("_User_Country_Name_Iso: " + _User_Country_Name_Iso);
getLogger().info("_User_Country_City: " + _User_Country_City);
getLogger().info("_User_Country_Region: " + _User_Country_Region);
getLogger().info("_User_Country_Region_Iso: " + _User_Country_Region_Iso);
} catch (Exception e) {
getLogger().error("Error GeoIP: "+e.toString());
}[/PHP]
But it does nothing, what is the problem? Please provide a basic sample for wowza integration, my project was stopped because of that
At least give me an answer is this integration is possible, if not, I will return to normal GeoIP immediately.