Is there a function or session attribute that will give me the name of the appserver I am connected to? I'm creating REST services in test and production envrionments where http://servername/WebServices/... connects to an appserver (REST broker) named RESTProd and http://servername/WebServicesTest/... connects to an appserver (REST broker) named RESTTest. There are no databases connected to these appservers (REST brokers). I need to be able to determine which appserver (REST broker) my class files are running on so I can determine which appserver (production or test, connected to databases) to connect to in order to run my ABL code on.
Thanks
None that I know of ... but for "Classic" appserver/webspeed, I create and Environment Variable in the config of the broker and use os-getenv("SERVICENAME") to work it out.
In OEPAS, you can use setenv.bat, setenv.sh to set the environment variables and get the value the same way.
community.progress.com/.../16600
If your PROPATH is structured between dev/tst/prod, then querying the PROPATH for an indicator of dev/tst/prod can work as well.
Mark
I didn't think about setting environment variables in the appserver config. I'm pretty sure that would work.
I was able to get the information I was looking for by parsing the string returned from SESSION:SERVER-CONNECTION-ID.