xmpp

Saving & Restoring Connections with XIFF

Hi, I'm modifying a piece of JavaScript code that uses XMPP + XIFF flash object to communication with MSN/Yahoo/GTalk via Jabber. The requirement of the web site is to enable page refreshes. However, the problem is the current implementation of XIFF does not allow saving and restoring of connection, but requires a new login every time...

Please confirm that this XMPP code is not threadsafe

I'm reading the source code to the Smack api and the the method XMPPConnection#disconnect looks like this: public void disconnect(Presence unavailablePresence) { // If not connected, ignore this request. if (packetReader == null || packetWriter == null) { return; } shutdown(unavailablePresence); if (roster ...

daemon threads in an app container

I read in a post to the Smack forum recently that Starting daemon threads in a Java EE server is a big no no Basically Smack's XMPPConnection starts one daemon thread to monitor incoming data & another to send outgoing data from/to the jabber server respectively. Is it reasonable to use daemon threads to listen for write/reads in ...

One listener for all packets vs separate listeners to handle specific types

Smack's XMPPConnection implements an event-driven manner of receiving XMPP responses from a jabber server. The method [addPacketListener][1] allows you specify your own custom listener. I'm maintaining code in which one PacketListener handles all types of incoming messages. In the interest of improving the design, (with a nod to the Sing...

XMPP Client incompabilities.

I'm currently working on a project that is building a java-based desktop application to interface with a website. We want to incorporate IM capabilities, so we decided to use XMPP. The problem is our application has other features, and anyone using another client to connect to our XMPP server will cause problems with our website (e.g. ...

XMPP Smack API RosterListener + Database Change

I'm writing an XMPP client in Java using the Smack API. I registered a roster listener for each user, and the Smack API calls... public void entriesAdded(Collection arg0) {} ... each time it notices a roster addition. Does anyone know if this listener will be set off if the database changes but not through the Smack API createEntry(...

PHP Jabber Integration

Hello, I am wondering how to integrate jabber instead of using my AJAX polling script. I chanced upon the following: http://code.google.com/p/xmpphp/ It gives me access to a jabber server, but does not tell me how to exactly go about it. I mean for example $payloads = $conn->processUntil(array('message', 'presence', 'end_stream', 'se...

Can we delay responding to a XMPP presence subscription ?

I am using a PacketListener to receive XMPP packets. If I receive the following: <presence from="[email protected]" to="[email protected]" type="subscribe"/> is the XMPP server expecting me to respond immediately ? Motivation: I want to cache all these subscription requests and allow the recipient to selectively ACCEPT/DENY (à la face...

Who actually uses a full JID ?

When logging in to an XMPP server via smack, I only send the userid/password combination. Do server components actually use the "resource" parameter in a full JID ? e.g. ali@someplace/resource What are the benefits of sending it ? Thanks ...

How to create a messaging service??

I want to create a messaging service that uses the XMPP protocol. How would I implement the server-side as well as the client side aspects of this service? I know I would need a server (like Jabberd 2) that runs the messaging framework. How hard would this be to set up and get running? Also what would be the best way to hook up a cli...

register new users in openfire??

Is there anyway to register new users through an HTTP request in OpenFire. I want users to be able to sign up for my messaging service from within an app written in cocoa. Can this be done?? ...

Libraries to connect to Instant Messaging (IM) services like Yahoo , MSN, AIM through Java Program

I am looking for some library that will help me connect to IM networks through a Java program. My requirement is as follows: User should be able to login, retrieve friend list, and able to send messages to his friends Messages should be delivered to offline friends too. I have done some research about lib-purple. But its not writte...

Good XMPP/Jabber client library for .NET 3.5 (or 4.0)

What are some good (or the best!) XMPP/Jabber client libraries for .NET 3.5 or 4.0 development? I have seen a few decent libraries out there, but most of the good ones seem to be built for Framework 2.0. (If a Framework 2.0 library is still the best, I'm ok with that. I'm just looking for the best libraries for a new project built on ...

Send an xmpp message using a python library

How can I send an XMPP message using one of the following Python libraries: wokkel, xmpppy, or jabber.py ? I think I am aware of the pseudo-code, but so far have not been able to get one running correctly. This is what I have tried so far: Call some API and pass the servername and port number to connect to that server. Call some API...

This class uses AtomicBooleans. Is it thread safe ?

I don't like to lock up my code with synchronized(this), so I'm experimenting with using AtomicBooleans. In the code snippet, XMPPConnectionIF.connect() makes a socket connection to a remote server. Note that the variable *connecting is only ever used in the connect() method; whereas *connected is used in every other methods that needs t...

jabber protocol problem

One of the contacts of my jabber robot, whose 'subscription' attribute value is 'to', which according to jabber protocol mean: **the robot has subscribed to the other party's online status, but the other party has not subscribed to my robot's.** But when I login to the other party account, I can see that robot is online, why is it...

Best XMPP Book?

I'm trying to learn XMPP (Extensible Messaging and Presence Protocol), and start a project using the technology. What are some good books out there? What is the best? Is there a best book for .NET development with XMPP? I'm planning to use OpenFire as my XMPP server. If any of the books cover that, great! But not a critical require...

How to turn off autosignin of registered transports in Openfire ?

This is regarding the gateway XEP 0100 support in Openfire. I have noticed that for some transports, they are auto-signed in once a connection to openfire succeeds (via the xmpp user). This applies specifically to QQ. How does one turn off this auto-signin feature ? Basically from a client perspective, I want to be able to signin select...

Looking for easy Instant Messaging protocol for own IM-server/service in in Java

I am thinking of implementing an easy Instant Messaging server in Java, but I don't want to create yet another protocol, but instead use an already simple IM-protocol. But I don't know which protocol I should use. The reason Why I want to use an already existing IM-protocol, is that I would like my 'users' to be able to use their own cl...

Jabber auto-login with random name

I'm building a live chat using JSJaC and ejabberd . It's all working except that all site visitors are given the account 'guest'. If two visitors try to livechat at the same time the responses get muddled or the first user is logged out. I can randomly set the guest name but then I need to check whether that name is registered or auto-r...