Use a small enough baking dish so everything close together and sitting in the oil, otherwise it will cook too quickly and evaporate and you will have roasted tomatoes, not jam. Also good, but not what we’re going for here.
Do not use uncoated cast iron.