No person engaged in the business or acting in the capacity of a mineral, oil and gas broker within this state shall bring or maintain any action in the courts of this state for the collection of compensation for the performance of any of the acts mentioned in this article without alleging and proving that he was a duly licensed mineral, oil and gas broker at the time the alleged cause of action arose.