Intramuscular injection of mice with an adeno-associated virus (AAV) vector expressing herpes simplex virus type 2 glycoprotein B led to the generation of both gB-specific major histocompatibility complex class I-restricted cytotoxic T lymphocytes and anti-gB antibody. AAV-mediated immunization was more potent than plasmid DNA or protein in generating antibody responses.