Using the method I described above  - leaving a little head space at the top and chilling the jam in the fridge before transferring it to the freezer - I've never had a glass jar of jam break. However if you prefer plastic containers, they'll work, too.