Tuesday, January 8, 2013

How to integrate OpenFire with Liferay chat portlet

The chat portlet in Liferay is actually a XMPP client, thus, we can choose to integrate the Chat Portlet with an external XMPP chat server.
XMPP Chat Server to be used in this post is OpenFire.

Tools required:
1. Liferay 6.1.x
2. Chat Portlet CE
3. OpenFire


Steps:
1. download Chat Portlet CE.
2. Download and install OpenFire Server.
3. Start Liferay.
4. Deploy the Chat Portlet by putting the Chat Portlet into the <Liferay_Home>/deploy folder.
5. once Chat Portlet deployed, open the <Liferay_deployment_folder>/chat-portlet/WEB-INF/classes/portlet.properties
6. paste the following configuration into portlet.properties 

    jabber.enabled=true
    jabber.host=XMPP_SERVER_IP    jabber.import.user.enabled=true
    jabber.port=XMPP_SERVER_PORT (5222)    jabber.resource=Liferay
    jabber.service.name=
    jabber.sock5.proxy.enabled=false
    jabber.sock5.proxy.port=-1
7. Restart Liferay to active the changes.

Done!!

liferay Chat Portlet CE

You may take a look also on How to install SparkWeb in a webapp, which providing another possible way to enable web-chat in a webapp.

4 comments:

  1. Hello there! This article could not be written any better!
    Going through this post reminds me of my previous roommate!
    He constantly kept preaching about this.
    I most certainly will send this information to him. Fairly certain he's going to have a very good read.
    Many thanks for sharing!

    My page ... referencer un site dans google ()

    ReplyDelete
  2. Hello,
    I have been able to follow and integrate openfire as informed in the article.Thanks for sharing.
    How do i test the chat application?How can i have two users logged in at the same time on my local for chatting as shown as image in your article?Right now for me, it says 0 user online.Please help.

    ReplyDelete
    Replies
    1. Hi,
      Tested it's working fine for me.
      probably you need to check your OpenFire server started in what port number.

      Besides,
      I opened 2 browsers, and logged in as 2 different users.
      then I can see the other user online.

      Best Regards

      Delete
  3. This is such a great resource that you are providing... free talking sites

    ReplyDelete

LinkWithin

Related Posts Plugin for WordPress, Blogger...