From what I've heard, you can put the pipe in boiling water, and after a little while, the resin will form a filmy substance at the top of the water, making it easy to get to.

I've never tried to though because I don't want my house smelling like weed..