OpenIDM property value substitution in boot.properties.

This topic has 2 replies, 3 voices, and was last updated 6 years ago by F3bio.

  • Author
    Posts
  • #3165
     Brad Tumy
    Participant

    Is it possible to use the property value substitution within the boot.properties itself?

    e.g.
    boot.properties:

    DEV.port = 9090
    PROD.port = 8080

    openidm.port.http=&{&{environment}.port}

    startup.bat:
    set OPENIDM_OPTS=-Xmx1024m -Xms1024m -Dfile.encoding=UTF-8 -Denvironment=DEV

    Using this approach I am getting errors on start up and it appears that OpenIDM doesn’t recognize the substitution on the port line.

    #3170
     laurent.bristiel
    Participant

    I tried as well and indeed it does not work.
    The only way I see is to use to different conf folder/project and the -p argument.

    #5946
     F3bio
    Participant

    I see no resolution so i post my strategy (openidm 3.1):
    – comment into conf/boot/boot.properties the line openidm.port.http=8080
    – add at the end of conf/system.properties:

    ### PORT VARIABLE
    DEV.httport=8080
    INT.httport=8080
    COL.httport=8090
    CER.httport=8090
    PRO.httport=9090
    
    openidm.port.http=&{&{environment}.httport}

    – after this edit the startup script with -Denvironment=DEV inside OPENIDM_OPTS
    – launch the script, open your browser and try it

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?