Retirement tax questions

If you live in PA and collecting NJ pension, does 3 yr rule still apply? State taxes paid to PA or NJ, after original investment is paid out?