You need to get into an exercise program as a procedure for home recovery after the surgery. You would have to work with a specialist so that you do not strain the shoulder. The process may take from 3 to 6 months before your shoulder heals. Find more information from the following site http://www.fairview.org/healthlibrary/Article/83558.
I had a total shoulder replacement 2 years ago, very painful. Alot of rest and alot of therapy. After 6 weeks, i had therapy 3 times a week for probably 6 or 7 months. Just do what they told you concerning therapy and home exercises.