Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Tools and Techniques

   

Launching a Direct to Web Application

To launch your application from Project Builder:

  1. Click in the toolbar in Project Builder's main window to open the Launch panel.

  2. Click in the Launch panel to launch your application.

Before you launch the application you might want to set some command line options. For example, when running a Direct to Web Application for deployment, you should turn on caching and disable the Web Assistant (to prevent anyone from connecting to the application using the Web Assistant). To do this, set the -WOCachingEnabled and -D2WWebAssistantEnabled options, respectively:

  1. Click to bring up the Launch Options panel.

  2. Click the Arguments tab.

  3. Click Add to create a new command line and type the entries as shown in the above example. If there is no checkmark under the Use column, double-click the line under Use to set it.

For other command-line options for WebObjects applications, such as -WOPort , see Serving WebObjects .

You can test the Direct to Web application using a web browser on a machine remote from the machine on which the application is running (that is, the server). When you launch the application, look in the console output, which is displayed in the Launch panel, for the line containing application's URL.

Jul 28 09:48:52 D2WTest[2777] Your application's URL is:
http://localhost:1234/cgi-bin/WebObjects/D2WTest

Enter the URL in your browser, after substituting the host name of the server machine for "localhost". In fact, you can exclude every thing in the URL after the application port number. For example, if the server host name is "foobar" you would enter the following URL in the browser to load the WebObjects application:

http://foobar:1234/


© 1999 Apple Computer, Inc. – (Last Updated July 27 99)