Multiple environments with dqMan/DQLTester

Problem:

Environment with multiple Documentum installations, different versions, repositories with same names in different versions, etc. Cannot install software in your local machine.

Some solutions:

  1. One big dfc.properties / dmcl.ini with every docbroker: dmcl.ini has a limit of docbrokers (and in my experience, dfc.properties does weird things with a big number of them)
  2. Generate dynamically dfc.properties/dmcl.ini: “Much” coding for “nothing”
  3. Multiple dfc.properties/dmcl.ini with different names, renaming accordingly before launching dqMan/DQLTester: Not a big fan of dfc.properties, dfc{dev}.properties, etc and then moving the files around.

Another solution:

With a folder structure such as:

Launcher:

  • launcher.bat
  • properties
    • env1
      • dev
        • dfc.properties
        • dmcl.ini
      • prod
        • dfc.properties
        • dmcl.ini
    • env2
      • dev
        • dfc.properties
        • dmcl.ini
      • prod
        • dfc.properties
        • dmcl.ini
  • etc.

Launcher.bat:

@Echo off
SETLOCAL ENABLEEXTENSIONS

SET dqmanfolder=<path to dqman folder>
SET dqltesterfolder=<path to dqltester folder>
SET folderbase=dfcproperties

echo ****************
echo 1. env1 dev
echo 2. env2 prod
...
echo ****************

SET /p var= ^> Choose option: 

if "%var%"=="1" goto op1
if "%var%"=="2" goto op2
...

:op1
SET foldervar=%folderbase%\env1\dev
goto finish

:op2
SET foldervar=%folderbase%\env1\prod
goto finish
...

:finish
set ClassPath=%cd%\%foldervar%;%ClassPath%
set DMCL_CONFIG=%cd%\%foldervar%\dmcl.ini

start "" /D %dqltesterfolder% /B %dqltesterfolder%\dqltester.exe
start "" /D %dqmanfolder% /B %dqmanfolder%\dqman.exe
cls&exit

2 thoughts on “Multiple environments with dqMan/DQLTester

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.