Java[tm] Smart Ticket Sample Application 1.2 > Configuring the Sample Application

Configuring the Sample Application

This section describes the steps needed to set up features of the sample application which are not supported by the default configuration.

Connecting to a Different Server

By default, the client is set to connect to a server running on localhost at port 8080.

To change the server to which the client connects, open <smartticket.home>/smart_ticket-client.jad in a text editor. (If you edit <smartticket.home>/src/app/client/midp/src/smart_ticket-client.jad, you ensure that each time you rebuild the application, the changes are permanent. However, you must rebuild the application after following these instructions.)

Look for the following line:

SmartTicket-Servlet-URL: http://localhost:8080/smartticket/servlet/

Replace all occurrences of localhost and 8080 with the name of the host and the port on which the server is running.


© 2002, 2003 Sun Microsystems, Inc. All rights reserved.