Integrate chat with SAP EP

Hi

I would like to integrate a chat application using smack API on my portal page (SAP EP). So please help me in providing me some information on how start on this, if anyone has worked on this please send me a sample of the above

Thanks in advance.

Jhansi