Multiwavelength observations of the two unidentified EGRET sources 3EG J0616-3310 and 3EG J1249-8330