XMPPIntegration

I am studying about GWT with maven and reading GWT in Practice book

XWiki offers a generic platform for developing collaborative applications while Extensible Messaging and Presence Protocol (XMPP) is an open technology for real-time communication, which powers a wide range of applications including instant messaging, presence, multi-party chat and much more. XMPP emerged from the Jabber open-source community starting in 1999. Thus the terms "Jabber" and "XMPP" are often used interchangeably. Jabbber, Google Talk are major IM tools that uses XMPP as its protocol and Skype is another popular IM tool widely used around the world.

This indicates that integration of Jabber, Google Talk and Skype with XWiki would expand the global coverage XWiki already possesses at present. As we all know, XWiki always prepared and willing to provide tools & applications for geographically distinct project teams that enable them to collaborate more efficiently and effectively, this idea would be another step towards the expansion of a world wide XWiki community.

Mockups

Starting GWT with maven

Jun 14 2009

Starting GWT with Maven

I have started studying GWT. I started reading ebook GWT in Practice. It helped me to quickly understand the basics of a GWT Project and Then I looked for how we could create and build a GWT project with Maven. Here are some important points to create a GWT maven project.

  • Download and install maven google web toolkit archetype. Download maven-googlewebtoolkit2-archetype-1.0.4.jar file from this link. GWT-Maven Archetype
  • Install the downloaded maven archetype
mvn install:install-file \
   -DgroupId=com.totsp.gwt \
   -DartifactId=maven-googlewebtoolkit2-archetype \
   -Dversion=1.0.4 \
   -Dpackaging=jar 
   -Dfile=path/to/downloaded/jar/file/maven-googlewebtoolkit2-archetype-1.0.4.jar

  • Now you can create the maven GWT project with the following command running in terminal
mvn archetype:create \
   -DarchetypeGroupId=com.totsp.gwt \
   -DarchetypeArtifactId=maven-googlewebtoolkit2-archetype \
   -DarchetypeVersion=1.0.4 \
   -DgroupId=myGroupId \
   -DartifactId=myArtifactId

  • After all this, you can run your GWT project in hosted mode and take all GWT advantages using following command
mvn gwt-maven:gwt

  • Or you can build a WAR file using this.
mvn clean gwt-maven install

May 15 2009

Running Selenium Tests with FF3

Last week I have learnt several things on writing Selenium Tests for XWiki.

Selenium is a portable software testing framework for web applications. XWiki uses Selenium for their integration testing. While I am learning how to write selenium tests I have learnt several things. Hope it would help others some times to blog here. XWiki mailing list and IRC helped me a lot to solve issues I faced. :)

I have started with Writing Selenium Tests For XWiki tutorial.

I wrote a test, com.xpn.xwiki.it.selenium.LoginObservationTest for the JIRA issue XWiki-3697.

After writing the test case, For first time run, I went to /enterprise/distribution-test/selenium-tests directory and run the following command as in tutorial

mvn install -Dpattern=LoginObservationTest

It showed an error saying

java.lang.RuntimeException: Firefox couldn't be found in the path!
Please add the directory containing 'firefox-bin' to your PATH environment
variable, or explicitly specify a path to Firefox like this:
*firefox /blah/blah/firefox-bin

The problem is that by default Ubuntu used Firefox 3. Here are the use ful steps to run your XWiki selenium tests with FF3.

  • Add your FF3 path to $PATH, if this does not work only change the pom.xml browser path to
    <browser>*firefox /path/to/firefox3/firefox-bin</browser>
  • change pom.xml selenium-maven-plugin version to
    <version>1.0-rc-2</version>
  • Enjoy running selenium tests with FF3. :)

Apr 28 2009

Introduction

Hi, I am Tharindu Madushanka, an undergraduate student of University of Moratuwa, SriLanka.

Contact

Email : tharindufit at gmail dot com
IM : tharindufit - Google Talk and Skype
Blog : Tharindu Madushanka

Introduction to Project

Project Name :
XMPPIntegration - XWki Jabber, Google Talk, Skype Integration

Project Description :
The idea is to integrate major IM tools like Jabber, Google Talk, Skype and allow XWiki users to chat with its members. In addition, it allows XWiki users to have multi user chatting with existing XWiki groups, users and also enables recording chat history when necessary. The XWiki users will have an easy to use but elegant user interface, which allows them to chat with XWiki users and also with other IM contacts (non XWiki) in their registered Jabber account. They will be having a great chat interface inside XWiki which is nicely integrated and balanced with existing features. In case, where user does not add their Jabber account details XWiki automatically creates a Jabber account for them. We internally create Jabber accounts for them with a Jabber server installed locally. At the end of this project, we will be using XWiki to chat while taking advantage of its all other advanced features. And more importantly XWiki users will be using their Jabber, Google Talk or Skype ids to chat if they prefer. (Great !)

Tags:
Created by Tharindu Madushanka on 2009/04/22 22:22
Last modified by Tharindu Madushanka on 2009/06/14 13:29

Workstream


This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 2.3-SNAPSHOT.27632 - Documentation