The present invention relates to a method and an apparatus for continuously sterilizing water for spraying the pistons in a piston pump or a homogenizer. The heating takes place in a first stage in a first heat exchanger (3) and in a second stage in a second heat exchanger (5). The first heat exchanger (3) operates regeneratively so that incoming cold water is heated in the first heat exchanger (3) by water which has been heated by steam in the second heat exchanger. After the second heat exchanger (5) the water is at a temperature of at least 1210°C and is to stay at this temperature in a holding cell (8) during a predetermined period of time. After the water has been cooled regeneratively in the first heat exchanger (3) it is to be at a temperature which exceeds 75°C.La presente invención se relaciona con un método y un aparato para esterilizar agua de manera continua para rociar los pistones en una bomba de pistón o un homogenizador. El calentamiento se realiza en una primera etapa en un primer intercambiador de calor (3) y en una segunda etapa en un segundo intercambiador de calor (5). El primer intercambiador de calor (3) funciona regenerativamente de manera que el agua fría de entrada es calentada en el primer intercambiador de calor (3) por el agua la cual ha sido calentada por el vapor en el segundo intercambiador de calor. Después del segundo intercambiador de calor (5) el agua se encuentra en una temperatura de por lo menos 121°C y se deja permanecer a esta temperatura en una celda de contención (8) durante un periodo de tiempo predeterminado. Después de que el agua ha sido enfriada regenerativamente en el primer intercambiador de calor (3) esta se encuentra en una temperatura la cual excede 75°C.