Welcome to PreCache NetInjector
Goals and objectives
Conventions
NetInjector Overview
Getting Started
 |
 |
Getting Started
installing and running the code samples
The sample package of applications presents various ways in which you can publish and receive notifications. The code samples included have been written in Java, C++, and C.
Beyond the samples specifically described in the tutorial, the package includes applications for creating a simple publishing tool, various flavors of chat, and a stock quote service.
Installation and configuration
You will need the following information from your administrator before installing and configuring your sample package:
- the IP addresses of the Primary and Backup NetInjector Information Server
- the NetInjector installation's local zip code
- a user id
Windows platforms
- Dearchive the package into a root directory.
- Run setup.bat.
- At the prompts, enter the IP addresses, your local installation's zip code, and your user id.
- Set your NETINJ_HOME environment variable to the directory where you dearchived your NetInjector sample package.
- Create a directory for the workspace $NETINJ_HOME/samples.
- Add $NETINJ_HOME/lib/dynamic to your path variable.
Linux platforms
- Dearchive the package into a root directory.
- Run setup.bat.
- At the prompts, enter the IP addresses, your local installation's zip code, and your user id.
- Set NETINJ_HOME environment variable to the directory where NetInjector is installed.
- Add $(NETINJ_HOME)/lib/dynamic to your LD_LIBRARY_PATH.
- To compile samples, set SAMPLE_HOME env variable to $(NETINJ_HOME)/samples.
- To run samples, copy the file channel.conf from $(NETINJ_HOME)/etc/channel.conf to the sample's directory.
Working with the applications
Each application included in the package is uncompiled.
- Compile the applications in your workspace.
- Add the appropriate channel.conf file to each application's directory.
-
Note: The channel.conf file must conform to the parameters of the channel. See, also, the
PreCache NetInjector API Reference guide, for more information on configuring channels.
- Run the application.
|