On Mar 30, 2009, at 10:06 AM, John Huss wrote:

Is there a session timeout in JavaClient? I would think there has to be. What happens when the session times out? Is there built-in notification or do you have to handle it manually?

Yes, there is. By default I believe it is 30 minutes, or maybe 20. I'm not entirely sure. It is the same session timeout that a web client session has by default

In D2JC I get a nice, "Your Session has Timedout on the server. The application will quit now." dialog box the next time the client tries connecting to the server.

Note, that depending on how much data is cached on the client, you could be working for quite a while on the client without ever talking to the server because if it doesn't have an explicit reason to talk to the server, it doesn't. The default is plenty of time if someone is actively using the client application, but being a desktop application most users will expect to be able to leave it running for hours at a time without actually using it. You need to balance this expectation with data-freshness and such and come up with an appropriate timeout for you particular situation.

With that said, I think it would be much better to have a more pro- active approach to session timeouts. Some type of notification to the user that their session is going to timeout if they have unsaved changes, and an option to automatically reconnect without a relaunch would be very helpful too. I have not implemented these things, but I don't really see a reason why they couldn't be.

Flor probably has some ideas on how to do this as he more directly manages the client-server connection since he doesn't use WebStart.

Dave


John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to