You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/02/10 12:41:37 UTC

[GitHub] [servicecomb-java-chassis] zhufeizzz opened a new issue #1568: CSE不支持多war包并行启动吗?

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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [servicecomb-java-chassis] liubao68 removed a comment on issue #1568: CSE不支持多war包并行启动吗?

Posted by GitBox <gi...@apache.org>.
liubao68 removed a comment on issue #1568: CSE不支持多war包并行启动吗?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1568#issuecomment-584486671
 
 
   java-chassis is not tested to deploy mutiple microservices in one process (or web container) and it's not recommended to do this. However, if you'd like to add some patch for this is welcome.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1568: CSE不支持多war包并行启动吗?

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1568: CSE不支持多war包并行启动吗?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1568#issuecomment-584486671
 
 
   java-chassis is not tested to deploy mutiple microservices in one process (or web container) and it's not recommended to do this. However, if you'd like to add some patch for this is welcome.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [servicecomb-java-chassis] WillemJiang commented on issue #1568: CSE不支持多war包并行启动吗?

Posted by GitBox <gi...@apache.org>.
WillemJiang commented on issue #1568: CSE不支持多war包并行启动吗?
URL: https://github.com/apache/servicecomb-java-chassis/issues/1568#issuecomment-584494671
 
 
   It's not a good practice to host multiple microservices into one JVM.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services