---
title: 'emite - Chat-Client und GWT XMPP Bibliothek'
url: 'https://www.tutego.de/blog/javainsel/2009/02/emite-chat-client-und-gwt-xmpp-bibliothek'
markdown: 'https://www.tutego.de/blog/javainsel/2009/02/emite-chat-client-und-gwt-xmpp-bibliothek.md'
date: '2009-02-20'
description: 'Eine tolle GWT-Anwendung/Bibliothek ist http://code.google.com/p/emite/: Der Chat-Client läuft im Browser als GWT-Anwendung. Über einen Proxy kann dann der Client (Browser) direkt mit dem Xmpp Server sprechen. (Noch ist ein Proxy nötig, siehe http://ejohn.org/blog/cross-site-xmlhttprequest/). Das …'
taxonomy:
  category:
    - 'Open Source'
    - 'Web Frameworks'
---

# emite - Chat-Client und GWT XMPP Bibliothek

![Illustration einer tropischen Insel mit Palmen und einem hohen Berg](https://www.tutego.de/blog/javainsel/user/themes/tutego/images/insel-cover.jpg)# Java Blog für Programmierer

[Java Blog für Programmierer](https://www.tutego.de/blog/javainsel/)

## emite - Chat-Client und GWT XMPP Bibliothek

20.02.2009 · [Christian Ullenboom](https://www.tutego.de/blog/javainsel/author/admin/)

Eine tolle GWT-Anwendung/Bibliothek ist [http://code.google.com/p/emite/](http://code.google.com/p/emite/ "http://code.google.com/p/emite/"):

[![](http://emite.googlecode.com/svn/wiki/emite-0.4.5.png)](http://emite.googlecode.com)

Der Chat-Client läuft im Browser als GWT-Anwendung. Über einen Proxy kann dann der Client (Browser) direkt mit dem Xmpp Server sprechen. (Noch ist ein Proxy nötig, siehe [http://ejohn.org/blog/cross-site-xmlhttprequest/](http://ejohn.org/blog/cross-site-xmlhttprequest/ "http://ejohn.org/blog/cross-site-xmlhttprequest/")). Das heißt, emite implementiert das [Extensible Messaging and Presence Protocol (XMPP)](http://xmpp.org/rfcs/rfc3920.html), um über [Bidirectional-streams Over Synchronous HTTP (BOSH)](http://xmpp.org/extensions/xep-0124.html) die Daten zum Chat-Server zu senden. Da emite auf der einen Seite eine Bibliothek ist und auf der anderen Seiten ein Chat-Client mit der hübschen Gui, lässt sich die Bib. natürlich auch getrennt nutzen; eine Nachricht wird etwas so versandt:

```java
Session session = Suco.get(Session.class);session.login(XmppURI.uri("me@domain", "myPassword");Message message = new Message("send this");session.send(message);
```

Intern setzt emite auf [http://code.google.com/p/suco/](http://code.google.com/p/suco/ "http://code.google.com/p/suco/") auf. Suco ist ein einfaches DI-Framework für GWT-Applikationen zusammen mit einem Eventing-Framework. (Suco ist nicht Annotationsgetrieben, da kein echtes Reflection mit GWT möglich ist. Mit einem speziellen Builder könnte man da aber was machen. Hm…)

Kategorien: [Open Source](https://www.tutego.de/blog/javainsel/category/open-source/), [Web Frameworks](https://www.tutego.de/blog/javainsel/category/web-frameworks/)

[← Alle Beiträge](https://www.tutego.de/blog/javainsel/)

---

## Navigation

- Previous: [GWT API's for SmartClient](https://www.tutego.de/blog/javainsel/2009/02/gwt-apis-for-smartclient.md)
- Next: [Buchkritik: Pragmatic Unit Testing in Java with JUnit](https://www.tutego.de/blog/javainsel/2009/02/buchkritik-pragmatic-unit-testing-in-java-with-junit.md)
