Treating chronic esophageal reflux

What treatment options are available for chronic esophageal reflux? Is surgery ever preferable to long-term treatment with a proton-pump inhibitor?