XMPP chat in the SAP Portal

Published by Tobias Hofmann on

4 min read

Note: 1st published at SCN on 16.11.2011

Can a neat chat application seamless embedded into the SAP Portal add value to your portal?

The SAP Portal comes with a build-in chat application. This application once was a very nice additional feature, not really user-friendly, but useful for easy out-of-the-box chat in the portal. Unfortunately, the chat application received a feature freeze some time ago and today looks just … old. It`s one of the portal functionalities ready to use, but no one does. That`s sad, considering that a chat application inside the portal can add some nice functionality to the end-users portal experience.

Partly the chat application is to blame (see screenshot above), but still: chat in a portal can add serious value and drive user adoption. Most chat applications have to be installed on the desktop or the online version requires a new window or consumes too much space to be easily integrated into a portal page. If you are familiar with Liferay you already know the chat functionality available there and how easy it integrates with the portal pages (of the facebook chat).

Besides having a nicely integrated chat application in the portal and therefor raising the acceptance by end-users, an integrated chat can be used as a communication channel. Integrate a chat room on a portal page gives the users the possibility to ask instantly questions about the application or content, without the need to open a support message.

Is this possible with the SAP Portal and how does this look like?

Short answer: of course it is possible!

People can log on anonymously to the chat or with their credentials. History can be kept so that new joiners can browser previous questions and answers. The user can click on the chat area to log on anonymously to the chat group for that page / LoB and asks for help. The support stuff can use their preferred chat client (here: Pidgin) to receive and answer questions of the users in real time.


The answers will pop up automatically at the chat window of the users logged on to the chat room.


A hidden feature is the ability to send messages to all registered users. Just put the chat application with automatic logon on a static part of the portal and send a message to all users connected.

The message pops up automatically.

The anonymous users are listed as session users, but not with their user Id. The user Id of the portal user can be used as the nickname when registering to the chat room. Therefore the username can be found in the chat room administration.


Other use cases: this chat application can also be used to track the actual number of users active in the portal and, with real log on to the chat, to interact with them.

Realization

I implemented the chat application by using

  • Openfire [1]
  • Jappix for openfire [2]
  • Some magic[3]

To complicate things and to see if a real-world implementation scenario is feasible I put the portal and the chat server are on different servers. Logon is done automatically as an anonymous user. To identify the users the user Id is taken as the nickname when entering a room. On the portal only the HTML part of the Jappix minichat (Javascript, CSS and HTML) is integrated.

[1] Maybe with the new SCN we also get a chat app? In case you wonder why: Openfire is from Jive, and after SAP decided to use almost no SAP Portal functionality besides the bare framework for integrating application and to go full Jive: Jive powered chat app in the SAP Portal. http://www.igniterealtime.org/projects/openfire/

[2] Jappix for Openfire: http://community.igniterealtime.org/docs/DOC-2195

Jappix: https://project.jappix.com/

[3] My magic didn`t work too well for IE (irony), but that’s related to the CSS used.

There is also a mobile version of Jappix available. Combined with the portal navigation this can be used to redirect mobile users to a mobile support forum.

Of course you can use the full desktop japer client that adds more functionality:

Send file

User information can be displayed as they are configured in the user DB of the chat server.

The web client is using the HTML5 location feature, so the actual location of the user can be displayed as well.

<a title=”Where are you? ([abcdef], Rio de Janeiro, Brazil)” target=”_blank” href=”http://maps.google.com/?q=-22.,-43.” ><span class=”talk-images location-world”></span></a>

Let the world know
Categories: PortalSAP

Tobias Hofmann

Doing stuff with SAP since 1998. Open, web, UX, cloud. I am not a Basis guy, but very knowledgeable about Basis stuff, as it's the foundation of everything I do (DevOps). Performance is king, and unit tests is something I actually do. Developing HTML5 apps when HTML5 wasn't around. HCP/SCP user since 2012, NetWeaver since 2002, ABAP since 1998.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.