powered by Jive Software

Sending to IM clients using Smack (and error 405)

Hi -

I’‘ve been dabbling a bit now with Jabber, Spark & Smack. What I’'m trying to do is write a bit of API that will send a broadcast message to a group of IM addresses across different gateways (AIM, MSN, Yahoo, ICQ etc.).

So, I downloaded Spark and created a new account with a random Jabber server, in this instance jabber.belnet.be. I then registered my AIM, MSN, ICQ and Yahoo accounts. Good so far.

The API I am using is as follows. Note it works as expected with AIM. But with MSN it gives the following error:


XMPPConnection.DEBUG_ENABLED = true;

XMPPConnection connection = new XMPPConnection(“jabber.belnet.be”);


connection.login(“user”, “password”);

Message message = new Message();


message.setSubject("Message from ");

message.setBody("Message from: Alan. This is a test. ");



Now, I am assuming that you can do this anyway. If I’'m on the right tracks any ideas why the error?

Thanks in advance.

No one knows the answer? I thought this would be a common function of the Smack API.

I believe the problem is you aren’'t allowed enough time for msn to finish authenticating.

I don’'t know anything about Smack, i only mess with XIFF and Flex.

You might want to have a button that when clicked calls a function that sends the test message for starters…