I know it's a long shot that there might be any uniPaaS developers on here, but here goes:
Today for the first time I've gone to duplicate a system we have in uniPaaS 1.5.
In the uniPaaS broker, I added the flag /ApplicationPublicName
to change the
APPNAME
that the application responds on.
However, the AppName()
output that the application generates is still the
original name of the application, not what I specifying as the
ApplicationPublicName
.
Our system relies heavily on AppName()
. Is there any way to get AppName()
to
return the same value as /ApplicationPublicName
?
Better late than never to answer your own question I guess.
To work around this, we internally depreciated the use of the AppName()
function, and instead replaced it with our own IntAppName()
. Our new function does an INIGet('ApplicationPublicName')
and returns that, as AppName()
seems to always be fixed to the name of the application when it was compiled.
This was 4 years ago on 1.5 - perhaps v2.0 is different now, but we have continued to use our internal function without issue.