Ex Boyfriend

My ex and I broke up 3 years ago. I was devastated and it took me about a year and a half to feel like I was completely over him. We've remained friends ever since although I haven't  seen him since March 2013 because we live in different countries. I haven't talked to him in over a month and last night I had a dream that he came to visit me and we were being very romantic. I've been with my current boyfriend for 2 years now and I'm completely in love with him, but ever since I had this dream I can't stop thinking about my ex? Is this normal? Should I text him? What should I do?