After you activate your Panther application, you need to define and configure its servers. The information you supply to the JetNet manager is added to the binary middleware configuration file, broker.bin that you created in Lesson 1.
In this lesson you learn how to:
You need to add two servers to the tutorial application: a standard server and a file access server.
First, add and configure a standard server—a server that advertises and executes JIF-defined services, and performs remote processing of reports. After adding this server, you configure it by setting properties that define its functionality.
More About the JIF
The JIF is a file that stores information about services used by your application-that is, functions performed by a server at the request of a client or another server. The JIF tells clients and servers what parameters and information to use when they process service calls. When you create a service component that has service routines, you must also define in the JIF the service that it provides. You learn more about the JIF in lessons 3 and 6.
The Server Configuration dialog box opens.
tutserveras the name of the server.
The Standard Server Details dialog box opens.
In the Standard Server Details dialog, you set properties that are specific to a standard server, such as which JIF-defined services it advertises, whether it runs in a development or production environment, and which database it connects to.
proservexecutable in the server machine's
DECLARE c1 CONNECTION WITH DATABASE="vidsales"
When you activate the server, it automatically connects to the specified database
The Server Configuration dialog box redisplays.
The Application Status window redisplays.
Next, you need to add a file access server to the application. This server offers clients shared access to libraries and repositories across the network and provides file transfer services at runtime; it also facilitates remote processing of reports that are transferred back to the client.
The Server Configuration dialog opens.
tutaccessas the name of the server.
In the Application Status window, both the
tutserver servers are included in the Application Hierarchy list.
Now start both servers.
tutserverserver in the Application Hierarchy list.
The status window indicates the server's successful activation.
tutaccessserver and repeat step 21.
If you have problems activating servers, refer to Appendix B on page B-1.
A dialog box opens, prompting you to confirm that you wish to terminate the session.
If you take a break, remember to shut down the application to free up the system resources.
In this lesson, you performed these tasks:
tutserver, which advertises and executes JIF-defined services. During development, all services normally are advertised on a single server and available to developers; in a deployed application, a server usually advertises only a subset of all possible services.
What did you learn?