If you're lucky enough to have a glut of tomatoes, you must make your own 'sun-dried' tomatoes. Packed in oil, they add wonderful flavour to pasta, pizza and more. You can also use the oil itself for cooking or in salad dressings.
If completely dried, your tomatoes should contain enough acid to prevent spoilage, even when stored at room temperature. Do ensure that any tomatoes added to the jar have dried completely, as water can contribute to bacteria growth.
However if you prefer to play it absolutely safe, store the jar(s) in the fridge for up to 6 months. The oil will solidify and turn white in the fridge, but will quickly melt and return to liquid after 30 minutes or so left out at room temperature.