1) The Canadian immigration puts it in their database then when you arrive in Canada, they just put it in your passport.
2) You have to to mail your passport, they put a visa in it and mail it back to you
3) You go in person to VFS or the embassy and they put the visa in your passport and you...