This post is continuation of my earlier post http://www.lukinotes.com/2012/07/ejabberd-vs-openfire-vs-handmade.html. At that day, I though to build my own server. Now, I think another simple way. I can make a bot application which acts like Jabber Client. So, if there is incoming message from SMS, another application from SMS module will run my bot application. This bot application will log in and connect to Openfire server to send message to all internet users that use Jabber client application.
To build this bot, I will use Smack API that gives many features to create Jabber client application easily. You can read the documentation here http://www.igniterealtime.org/builds/smack/docs/latest/documentation/. This API is a number of Java libraries so you must include those libraries when you want to build a Java application. The bot application of course will be put on server. Beside that, I also plan to make my own IM client application that connect to Jabber server using this API. Internet messaging application from http://www.igniterealtime.org/ like Spark has too many features that won't be used for Smart Gateway system.