The Server Edition of the proxy server starts and stops automatically when you start or stop the application server. To prevent the proxy server from starting automatically, specify the following option when you configure the PowerBuilder Application Server Plug-In:
“-Dproxy.name=none”
See “Configuring the server plug-in”.
The .bat files that start and stop a proxy server are located in the bin subdirectory of the proxy server installation.
Starting a proxy server in the current window
For a proxy server that uses the default name, run:
run-server.bat ejb-proxy
Or, if you configured the proxy server using a nondefault value for the proxy.name property, run:
run-server.bat proxy-name
where proxy-name is the name of the proxy server.
The run-server command prints the location of the server log file. Check the server log for debugging information. The default log is ejb-proxy.log, located in the logs subdirectory of the proxy server installation.
Starting a proxy server in a new window
For a proxy server that uses the default name, run:
start-server.bat ejb-proxy
Or, if you configured the proxy server using a nondefault value for the proxy.name property, run:
start-server.bat proxy-name
Starting a proxy server in the background
For a proxy server that uses the default name, run:
start-server.bat -bg ejb-proxy
Or, if you configured the proxy server using a nondefault value for the proxy.name property, run:
start-server.bat -bg proxy-name
Starting a proxy server from a PowerBuilder client
In a PowerBuilder client, you can start a proxy server using the PowerScript Run function. For example, add the following code to an application’s Open event:
Run(“C:\ejb-proxy\bin\start-server -bg ejb-proxy”, Minimized!)
Sybase recommends that you start the proxy server in the background to impede stopping the proxy server while the client application is running.
Stopping a proxy server that is running in a command window
In the window where the proxy server is running, enter Ctrl+C.
Stopping a proxy server that is running in the
background
Open a command window.
If you did not specify a name when you started the proxy server, enter:
stop-server.bat -local ejb-proxy
If you did specify a name when you started the proxy server, enter:
stop-server.bat -local proxy-name
Stopping a proxy server from a PowerBuilder client
In a PowerBuilder client, you can stop a proxy server using the PowerScript Run function. For example, add the following code to an application’s Close event:
Run(“C:\ejb-proxy\bin\stop-server -local”, Minimized!)