We have done this by starting each adapter process in a different working directory. As the adapter looks for JAS.INI in the current directory, this allows us to run multiple environments.
To start each adapter in a separate directory, we added a “cd” command into the beans_adapter script, just after the “cd $activeHome” statement, and before the CLASSPATH assignment (approx line 424). We use the contents of $progArgs to decide which directory to “cd” to – in our case we make the decision based on the broker name (second word of $progArgs), but could for instance use the adapter name (first word of $progArgs).
We also add our custom JAR files to CLASSPATH with relative file names, for the same reason – we can then run different JARs in each directory/environment.
Hope this helps!
Michael Lemaire
#Integration-Server-and-ESB#webMethods#Adapters-and-E-Standards