Deploying your Service with the Makefile
The generated makefile includes a deploy target to deploy the sample service and associated client. (See Chapter 22, Options for Compiling, for more information on building your applications using the makefiles.) If you have compiled the service using MSVC on Windows, a deployment batch file is generated for your convenience. See Deploying your Service Using MSVC Files.
To deploy the service, follow the steps in this section.
NOTE: Make sure that you have set up your environment as described in Chapter 2, Setup in the HydraExpress User Guide. On Windows, be sure you have set up your command window with the MSVC environment.
If the Agent is currently running, stop it using the rwsfserver stop command:
rwsfserver stop
rwsfserver stop
Run nmake (Windows) or make (UNIX or Linux) at the command prompt with the target deploy:
nmake deploy
make deploy
The makefile deploys the service and client into your HydraExpress installation, as follows:
*The service WSDL file, configuration files, and service descriptor web.xml are deployed to the <installdir>\apps\servlets\<servicecontextname> directory.
*The DLL or shared library for the service and client is placed in <installdir>\apps-bin on Windows and <installdir>/apps-lib on UNIX/Linux.
For example:
Table 15 – Location of deployed files
Deployment Directory
Deployed Files
WEB-INF [subdirectory]
<installdir>\apps-bin (Windows)
<installdir>/apps-lib (UNIX/Linux)
<bindingname>ClientLibrary12d.dll or <bindingname>
<portname>Service12d.dll or <portname>
HandlersServiceSample12d.dll or
Restart the Agent to load the new service. To restart the Agent, run the rwsfserver start command as shown below:
rwsfserver start
rwsfserver start
NOTE: For services built using the MSVC project files, do not use nmake deploy. See Deploying your Service Using MSVC Files.