This thread is archived
2 Replies Last post: Aug 4, 2004 4:37 PM by Herbert Poul  
Herbert Poul Bronze 33 posts since
Mar 11, 2003
Currently Being Moderated

Aug 4, 2004 12:23 PM

Problem with transport (ICQ)

Hi,

i''m using smack in my bot ( http://galena.sphene.net ) and registered with the icq transport of my jabber server.. and it works at the beginning..

but after a few hours the bot goes offline in icq..

(when i tell the bot it should send a presence message to the transport the bot goes back online)

my problem is .. that i don''t know how to detect when the bot goes offline in icq so i can automatically resend a presence message.

(the transport itself is always marked as unavailable in the roster .. so i couldn''t listen for a roster event)

 

so how could i detect when the bot is online in icq ?

 

thanks in advance

  Herbert Poul

Adam Olsen Bronze 200 posts since
Jul 15, 2003
Currently Being Moderated
Aug 4, 2004 12:40 PM in response to: Herbert Poul
Re: Problem with transport (ICQ)

You could essentially ping the transport once every few minutes.  Just set up a java.util.Timer or something.

 

I don''t know if this is a best way, but this sounds like a problem with the transport.

 

Adam

More Like This

  • Retrieving data ...