Understand from GS that below openfire can be used for IM Server and spark IM client for clients.
Using this two software company can have their own chat facility.
http://www.igniterealtime.org/projects/openfire/index.jsp
http://www.igniterealtime.org/projects/spark/index.jsp
Both are open source software – free to download and try