Our team is using ESRI ArcGIS and our requirement is
1.To create a web application in JAVA with a map displaying various data from DB.
2.The data gets updated periodically in the DB and the map should display it as and when the data is ready in DB.
3.Numerous fields of the DB should be selectable on the map on a demand basis.
Right now we are creating a mxd file and publishing it as service and showing it on the ArcGIS for Dexktop.
So I am pretty unsure if I should use the ArcGIs for Java SDK for all of my above requirements or go with ArcGIs for Javascript API. Please let me know the best possible way to acheive this.