The equipment has of course an influence on the sustain. Compressor can help and a good amp too. But the playing technique makes about 50 - 70 % of the sound. To get a great sustain the vibrato - techique has to be developed properly :cool:
check http://www.guitartricks.com/lesson.php?input=11359&s_id=475