Production of polarized particle beams via ultraintense laser pulses