JavaFx: How to detect connection/disconnection to/from server

54 views
Skip to first unread message

Y Borys

unread,
Mar 29, 2015, 11:36:07 AM3/29/15
to gran...@googlegroups.com

In my application i need to listen for server connection / disconnection  events.
In flex there is Tide.isConnected property. Is there something similar in JavaFX client library?
Can someone provide simple example how to do this.
Thanks.

Cory Showers

unread,
Mar 31, 2015, 10:26:04 PM3/31/15
to gran...@googlegroups.com
you can listen for disconnects on the ServerSession object

serverSession.addListener((TransportException e) -> handleServerException(e));

Александр Шелюгов

unread,
Apr 2, 2015, 8:33:01 AM4/2/15
to gran...@googlegroups.com
Take a look here: http://www.granitedataservices.com/public/docs/3.1.0/docs/reference/flex/graniteds-refguide-flex.html#remoting.tideremoting.flex in the "Miscellaneous feathres" section.

There is Tide.disconnected flag, and they say it's bindable. You can try it in your app.
Reply all
Reply to author
Forward
0 new messages