If anyone sends me a chat message but I don't want to chat with that person then I want to route that chat message to other guy in my roster so that they can chat with each other. I have seen this type of stuff in Jive Messenger online support. So how can I implement this in Miniclient ?
you mean the Jive Live Assistent. This is a addon for a server software. So the message routing is handled in the server. You can do this in a server by changint the to attrib, but not in a client like the MiniClient. If you want to write a software like the live assistant you should build a component for a server.