Means of producing immunity to a disease by using an immunogenic preparation