Cluster openfire

If I have two servers, one says node1 and another node2, within their respective /etc/hosts (linux) configurations, when working with load balancing and I want the JID name to be david@mydomain.com, as I have to configure it? With HAProxy?

What else would I have to set up?

–help