Bring 3/4 litres of water to the boil, cover the bacon and peppercorns and cook over a medium heat for about 30 minutes. Clean, wash and break the beans into pieces. Wash the savory and tie up with kitchen string. After about 30 minutes, add 1 teaspoon of salt, beans and savory to the bacon and cook for another 20 minutes. Wash and quarter the pears and cut out the core.
Cut pear quarters into slices and add to the beans about 5 minutes before the end of the cooking time. Melt the fat in a saucepan. Sweat flour in it. Deglaze with 1/4 litre vegetable water and milk while stirring. Cut cheese into pieces and dissolve in the sauce. Season to taste with salt and pepper. Remove bacon and savory. Put beans and pears without liquid in an ovenproof dish. Cut the rind off the bacon. Cut the bacon into slices and place them on the pears.
Remove bacon and savory. Put beans and pears without liquid in an ovenproof dish. Cut the rind off the bacon. Cut the bacon into slices and place them on the pears. Pour sauce over the casserole. Bake in a preheated oven (electric cooker: 200 °C/ gas: level 3) until golden brown. In the meantime, peel and finely chop the onions, sprinkle over the casserole and garnish with savory.