Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to deal with network problem in an IM application?
How to deal with network problem in an IM application? [message #465597] Tue, 03 April 2007 01:45 Go to next message
Jian Lee is currently offline Jian LeeFriend
Messages: 21
Registered: July 2009
Junior Member
Hi, all

I'm in trouble with handling the network broken and re-establish in an
IM application, which is build on RCP.

Our requirements is to follow the way of MSN and Skype, that is to say,
when the network is broken, the main window should be closed, and only
the login dialog will be shown, and if the network connectionn is
established, the application can auto re-login.

We're using SMACK as communication protocol, and in it's version 3.0,
XMPPConnection can do re-login automatically, but the problem is, how to
close the workbench and just show the login dialog to the user?

At first, we tried PlatformUI.getWorkbench().restart(), but after this
method is executed, we'll get new XMPPConnection and ConnectionListener
objects, so they cannot listen to the re-login event and then UI cannot
get notifications.

My question is: Will there be any way that I can restart the application
without release the objects in the memory?

Any suggestions will be highly appreciated.

Thanks a lot!

Chandler.
Re: How to deal with network problem in an IM application? [message #465612 is a reply to message #465597] Tue, 03 April 2007 07:56 Go to previous messageGo to next message
Jian Lee is currently offline Jian LeeFriend
Messages: 21
Registered: July 2009
Junior Member
or, can we forbid users from controlling UI?

Chandler wrote:
> Hi, all
>
> I'm in trouble with handling the network broken and re-establish in an
> IM application, which is build on RCP.
>
> Our requirements is to follow the way of MSN and Skype, that is to say,
> when the network is broken, the main window should be closed, and only
> the login dialog will be shown, and if the network connectionn is
> established, the application can auto re-login.
>
> We're using SMACK as communication protocol, and in it's version 3.0,
> XMPPConnection can do re-login automatically, but the problem is, how to
> close the workbench and just show the login dialog to the user?
>
> At first, we tried PlatformUI.getWorkbench().restart(), but after this
> method is executed, we'll get new XMPPConnection and ConnectionListener
> objects, so they cannot listen to the re-login event and then UI cannot
> get notifications.
>
> My question is: Will there be any way that I can restart the application
> without release the objects in the memory?
>
> Any suggestions will be highly appreciated.
>
> Thanks a lot!
>
> Chandler
Re: How to deal with network problem in an IM application? [message #465617 is a reply to message #465597] Tue, 03 April 2007 09:22 Go to previous message
Jian Lee is currently offline Jian LeeFriend
Messages: 21
Registered: July 2009
Junior Member
or, can we forbid users from controlling UI?
Previous Topic:Memory Leak in IEditorInput class
Next Topic:View not being told of empty selection when editor closes.
Goto Forum:
  


Current Time: Sun Sep 22 16:41:01 GMT 2024

Powered by FUDForum. Page generated in 0.05161 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top