BATCH-2077 Java Config: Register listeners just once

See BATCH-2077