Appserver broker name

Posted by KHerb64 on 20-Feb-2019 16:20

Hi,

my ABL program is successfully running in a state-free Classic Appserver agent. It was called from a Java open client via direct-connect.

I want to determine the name of  "my" Appserver broker from within the running ABL code. I experimented a lot but did not really succeed. I even found this post (community.progress.com/.../34981) but did not want to go down parsing road.

Any ideas how this could be done?

Thanks in advance, Herbert

Posted by Peter Judge on 20-Feb-2019 16:30

Hi Herbert,
 
Depending on your version, but you can use the value of the -logname parameter which is discoverable via the SESSION:STARTUP-PARAMETERS attribute. That’ll be something like “asbroker1” or “oepas1” for PASOE.
 
 
 
 

All Replies

Posted by Peter Judge on 20-Feb-2019 16:30

Hi Herbert,
 
Depending on your version, but you can use the value of the -logname parameter which is discoverable via the SESSION:STARTUP-PARAMETERS attribute. That’ll be something like “asbroker1” or “oepas1” for PASOE.
 
 
 
 

Posted by KHerb64 on 20-Feb-2019 16:36

Thanks Peter,

this would definitely be simpler parsing.

And I just veryfied: it works both when my Appserver broker was started by OE Management and manaully (asbman ... -start).

The value for -logname definitely comes from the name of the Appserver itself.

Posted by KHerb64 on 20-Feb-2019 16:36

Thanks Peter,

this would definitely be simpler parsing.

And it will surely work when my Appserver broker was started by OE Management.

This thread is closed