Hi IS Team,

The variable "${carbon.management.port}" used in identity.xml is getting
evaluated to NIO port in APIM. We can see that IdentitUtil class[1]
resolves this variable.
I think instead of using your own variable here, we can use
"mgt.transport.https.port" system variable which is already available. So
you can just use System.getProperty("mgt.transport.https.port") and
System.getProperty("mgt.transport.http.port") [2] , which will return the
servlet HTTPS and HTTP ports.

[1]
https://github.com/wso2/carbon-identity/blame/master/components/identity-core/org.wso2.carbon.identity.core/src/main/java/org/wso2/carbon/identity/core/util/IdentityUtil.java
[2]
https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.tomcat.ext/src/main/java/org/wso2/carbon/tomcat/ext/transport/ServletTransportManager.java#L34

Thanks,
Lakmali

-- 
Lakmali Baminiwatta
Senior Software Engineer
WSO2, Inc.: http://wso2.com
lean.enterprise.middleware
mobile:  +94 71 2335936
blog : lakmali.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to