How can I specify 2 different values of same system property or VM Argument?

133
August 19, 2019, at 8:00 PM

I have a system property which I use in my Intellij's VM arguments section as

-Djava.security.krb5.realm="EXAMPLE1.COM", I want to use another value for the realm name instead of EXAMPLE1.COM when I connect to another resource.

For example, my MongoDB sits in EXAMPLE2.COM and my Kafka sits in EXAMPLE1.COM and have same userAccount having access to both the different realms. How to connect to both of these by setting the same VM argument having 2 different values from my application code ??

Thanks in advance

Rent Charter Buses Company
READ ALSO
Wait for the result of an database update before moving to next statement

Wait for the result of an database update before moving to next statement

I want my servlet to wait for the result of a database update before moving to the next lineI have the following code snippet:

129
IntelliJ - Can't navigate to JDK directory

IntelliJ - Can't navigate to JDK directory

I can cd to the JDK path

141
Css Selector has specific attribute?

Css Selector has specific attribute?

I need to click the checkboxes from a collection if they are not checked by default as well some other conditionsAnd backward too

154
Mockk in Kotlin: Argument passed to verify is not a mock

Mockk in Kotlin: Argument passed to verify is not a mock

I have defined my mock as follows:

263