Configuring multiple connection settings
Why would you want to have multiple connection settings for OECGI4? Here are three scenarios you may consider:
1. Separate Development and Production OpenInsight installations.
If you have separate Development and Production installations of OpenInsight installed on your server, then you will need to create two separate connections for OECGI4, one for each installation.
2. Multiple applications running in the same installation of OpenInsight.
You may have multiple applications running in the same installation of OpenInsight. By creating separate connection settings for each application, you are able to service requests to those applications from the one web server.
3. Hosting your clients OpenInsight applications on your server.
You may like to host your clients web based OpenInsight applications on a server in your office. One server could be used to host multiple OpenInsight applications for multiple clients. You could have a separate OpenInsight installation for each client, or one OpenInsight installation with multiple applications and or datasets.
Creating multiple connections
The default OECGI4 connection used above connected to the SYSPROG application as user SYSPROG. We will now create a new OECGI4 connection to the EXAMPLES application as user EXAMPLES.
To access the EXAMPLES application we need to:
1. Change the settings for OECGI4
2. Add a Virtual Directory to the web server.
Step 1 – Change the OECGI4 registry settings
Let’s add a registry setting to OECGI4 so that it can communicate with the EXAMPLES application.
Open REGEDIT and navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\RevSoft\OECGI4
The default OECGI4 connection settings are stored at this key. You can create sub-keys to point to different OpenInsight applications and different OpenInsight installations. This allows you to have connections to:
1. OpenInsight applications on different servers or TCP/IP ports.
2. Different OpenInsight applications.
The settings for each of the sub-keys are the same as they are in the 'main' key (ApplicationName, UserName, ServerPort, etc.) - they just live under HKEY_LOCAL_MACHINE\SOFTWARE\REVSOFT\OECGI4\<websharename> instead of just HKEY_LOCAL_MACHINE\SOFTWARE\REVSOFT\OECGI4.
Note: If OECGI4 doesn’t find a sub-key with the <websharename>, then it will go to the 'main' key and get the settings from there.