Get HTTP-API Port
 

Get HTTP-API Port

3 posts, 1 answered
  1. Markus Grigoleit
    Markus Grigoleit avatar
    31 posts
    Registered:
    04 Jun 2019
    10 Nov 2020
    Link to this post
    Please don't ask me why but i need to know the tcp-port under which the @RestMethod / @RestAddress annotations are available at runtime.

    Is there a way to figure that out? I was thinking about reading it from the HTTP-Headers of a request. This seems hacky tho.
  2. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    Answered
    10 Nov 2020 in reply to Markus Grigoleit
    Link to this post
    You can try this:

    Use Consultingwerk.Util.StartupParameterHelper:GetStartupParameterValue ("ubpropfile")

    That should return the path to the OpenEdge.properties file. In the same folder lies the appserver.properties file that contains the TCP/IP ports of the PASOE instance.
  3. Markus Grigoleit
    Markus Grigoleit avatar
    31 posts
    Registered:
    04 Jun 2019
    11 Nov 2020 in reply to Mike Fechner
    Link to this post
    Yeah that worked! Thanks
3 posts, 1 answered