Two Boston men were arrested on attempted murder charges yesterday in connection with a brazen, daylight shooting in Dorchester, police said.