One long, one short? I believe the long-shaft speedo gear was used with the later transfer cases (electronically-driven speedo. I am unsure of when this started.)
However, you can probably bring your old speedo gear and its housing over to your new transfer case without incident. I believe all of the NP/NVG transfer cases used for Jeeps have 8t drive gears in the transfer case, so that should not change.
But, compare the housing you remove to access the speedo gear. If they mount the same, just put the old housing on the new tcase and call it good.
"recon" (sic - reckon)(tm) "hihgly"(tm) "seceed"(tm)
"Outback AIDS - Alcohol-Induced Dizzy Spells"