I have a problem similar to the following question:
Is there a way to load/update the data without removing feature layer and without flicker effect using arcgis java