By looking to this URL I know we can connect to XMPP server using this link Good XMPP Java Libraries
but I want to create my Own XMPP server, currently we have Openfire, tigase and many other Servers available. but is there any Libraries and tutorial are available for making an XMPP server from scratch?
I want to make a server that can handle all web, client application, Android and iOS requests (for Chat and other purpose).