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