Minecart with Monster Spawner

A Minecart with Spawner will probably spawn mobs as it goes along its respective rail. A possibility is that it will spawn mobs when it hits an Activator Rail, or simply spawn mobs constantly like a normal Spawner.