IL-12 is essential for resistance against Yersinia enterocolitica by triggering IFN-gamma production in NK cells and CD4+ T cells.