Entity manager factory listener.