Longview man gets prison time for dealing ecstasy