Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
Deployment Issues with Java Client
This chapter addresses special issues you need to address when deploying WebObjects applications using Java Client.
A WebObjects application developer can produce applications of two types:
Web applications on which the user interface elements are produced using HTML code.
Java Client applications, which use Sun’s Swing technology to produce a user interface that is more appealing and more efficient than HTML-based interfaces. For more information on Java Client applications see the WebObjects Java Client documentation, available at http://www.apple.com/developer.
There are two main issues that you should keep in mind when you deploy and administer Java Client applications:
Java Client applications offer the user an interface that is very similar to the one offered by regular desktop applications. Therefore, users expect Java Client applications to behave in a way similar to their desktop applications.
One of the main differences between a desktop application and a Java Client application is that Java Client applications open a connection to a server-side application. This connection expires after a certain period of inactivity. By default, the timeout period is 30 minutes. This may not be enough time for an application user that launches the application, goes to lunch, and returns to work 45 minutes later. When the user tries to use the application (which is still running on her computer), she will see a dialog that indicates that her session has timed out. In addition, any changes that were not saved are lost.
In Web applications, the packets sent between the web browser and the web server tend to be large. However, the size of the packets doesn’t vary much (the server always sends the entire page to the browser). In Java Client applications, the packets sent by the server during application startup can be large (the entire application or part of it is downloaded); subsequent packets are relatively small (user-entered data and search results, for example).
For more information on WebObjects’s Java Client technology, refer to WebObjects Java Client Programming Guide
Copyright © 2001, 2007 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2007-10-31