Move the files to the deployment directoryMove the "Server" directory into the web documents directory of the web server (JavaWebServer\public_html\).
Starting the Java Web Serverc:\JavaWebServer\bin>httpd.exe
Starting the Registry ServiceOpen a new window. Change to a directory that contains no class files. Make sure that the class path is not set to anything. If the rmiregistry finds stub classes in its local CLASSPATH, it will ignore the server(s) java.rmi.server.codebase property, and as a result, your clients will not be able to download the stub classes. To start rmiregistry: c:\> start rmiregistry
Starting the Server ApplicationWhen starting the server, the java.rmi.server.codebase property must be specified, so that the stub class can be dynamically downloaded to the registry and then to the client. The following command shows how to start the InfoServerImpl server, specifying the java.rmi.server.codebase. c:\JavaWebServer\public_html\Server> java -Djava.rmi.server.codebase=http://localhost:8080/Server/ InfoServerImpl
|
||||
|
||||
Copyright © 2001 www.universalteacher.com |
||||