Yes, you can get DOS recommendation when you are in China. You will send a DOS letter copy with the I-129 application so USCIS will approve your I-129. And then you can get H1 visa in China.
If you have J1 waiver, you don't need to stay in China for two years.