Peel the shallots, mix in a pan with the white wine and all the other ingredients up to and including the salt, bring to the boil. Cook over a medium heat for approx. 15 mins. Remove the shallots, transfer to the jars.
Add the vinegar, sugar and salt to the liquid, return to the boil, pour the boiling hot liquid over the shallots to cover. Seal the jars immediately, leave to cool on a towel.