Spring: Initialize number of PMs

 * Also check if maxPms == 0 and throw
   an error.