First off, I am not a lawyer so this isn't legal advice. A patent is only enforceable if it is granted. While an application is being processed, the common term is "patent pending". While a patent application is being processed it is common for the applicant/assignee to inform potential infringers that they have a patent pending. This might be enough to get a potential infringer to stop producing the product or negotiate a license.
Should a patent be granted you can sue an infringer. In that proceeding you can try to obtain penalties back to the publication date under some circumstances. However, if a patent is never granted you have no grounds for an infringement suit.
That said, please remember that most patent applications are initially rejected. This is part of the process. Your patent attorney will address the issues pointed out by the examiner and hopefully amend the claims or otherwise address the issues sufficiently to obtain a useful patent. I always advise inventors to work with a patent attorney or agent when pursuing a patent as it increases dramatically the likelihood of obtaining a useful patent.