zhufeizzz opened a new issue #1568: CSE不支持多war包并行启动吗?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1568
 
 
   我们的Tomcat里面有多个war包,设置了并行启动,结果发现服务中心Address的urlPrefix串了。
   
   跟踪了一下CSE的代码发现这个值的上下文是通过System.property传递的,这也太坑爹了吧。。。除了改成串行还有别的办法没?
   
   ServletRestTransport
   ``` 
     @Override
     public boolean init() {
       String urlPrefix = System.getProperty(Const.URL_PREFIX);
       Map<String, String> queryMap = new HashMap<>();
       if (!StringUtils.isEmpty(urlPrefix)) {
         queryMap.put(Const.URL_PREFIX, urlPrefix);
       }
   
       String listenAddress = ServletConfig.getLocalServerAddress();
       setListenAddressWithoutSchema(listenAddress, queryMap);
   
       restClient = RestTransportClientManager.INSTANCE.getRestClient();
       return true;
     }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to