Creating a runtime image
Packaging a Web Connection application is essentially the same as packaging any VA Smalltalk application. To package your application, follow these steps:
1. Make sure you have versioned and released the classes in your application, and that you have listed any required prerequisites. In order to include the Web Server Interface Monitor in a packaged application, users should modify the prerequisites for web applications to include the AbtRunHtmlPageApp application.
2. In the Organizer, select the application you want to package. Then select Make Executable from the Applications menu, or from the pop-up menu in the Applications list.
3. Because a Web Connection application contains no ordinary visual parts, VA Smalltalk asks if you want to continue with packaging. Select Yes.
4. Confirm that Make Executable is selected, and make any necessary corrections to the list of prerequisite applications. When everything is correct, select OK to initiate packaging.
For more control over the creation of the runtime image, users can package their web applications using the Tools->Browse Packaged Images option on the Transcript.
Including the AbtRunHtmlPageApp Application
Using the packager, it is possible to add the AbtRunHtmlPageApp application to the packaged image from the Package Control Panel without modifying application prerequisites. (This can be done, for example, at the Modify Instructions step.) This approach is necessary for Web applications that must be loaded into an XD image because the AbtRunHtmlPageApp application will not load into an XD image.
For example, the sample application AbtWebSamplesApp is now headless by default because it does not include the prerequisite AbtRunHtmlPageApp. When the packaged image for this sample is started, no windows will open. The application AbtWebSamplesApp can be loaded into a passive XD image and packaged if desired.
The application AbtWebSamplesWithMonitorUIApp contains prerequisites to include the Web Server Interface Monitor as well as all the sample parts from AbtWebSamplesApp. This application cannot be loaded into an XD passive image.
Note:
Applications constructed before v4.5 already include the prerequisite AbtRunHtmlPageApp, so no special action is necessary.
Packaging an image with Web Connection image components
To package your Web Connection application so that it utilizes the Web Connection image components, you must implement a packager method to force inclusion of your web parts in the packaged image.
For example, implement the following method as a class method of the application containing your web connection parts.
packagerIncludeClassNames
"Return a list of class names which have to be included in the packaged image."
^self defined collect: :i | i name ]
 
 
Last modified date: 01/29/2015