There are special machines that can prepare a B-52 (or other multi-layered cocktails) in only a few seconds [REF].
B-52s are usually served in a shot glass or sherry glass, although a heatproof glass is required when a "flaming B-52" is served.