Forget about the beach - it'll be very very hot, and the scorching sun will not be kind to your infant's skin. Hotel pool will only be OK if they have landscaped pool areas with lots of trees and other shade-providing structures.
This is what you can expect there all summer long:
http://www.accuweather.com/en/ae/dubai/323091/july-weather/323091