You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/07/12 09:36:09 UTC

[GitHub] ralf0131 commented on issue #1769: 我自己实现了一个Container,如何在使用com.alibaba.dubbo.container.Main启动应用的时候传递参数进来?

ralf0131 commented on issue #1769: 我自己实现了一个Container,如何在使用com.alibaba.dubbo.container.Main启动应用的时候传递参数进来?
URL: https://github.com/apache/incubator-dubbo/issues/1769#issuecomment-404452596
 
 
   Hi, 
   
   I am afraid that there isn't a way to do so.
   
   Since you can specify multiple container, how can you know which args should go with which container?
   
   e.g. 
   
   ```
   java -jar my.jar container1 container2 container3
   ```
   
   How to specify args for container2?
   
   Maybe sth. like this:
   
   ```java
   java -jar my.jar -container containerA arg1 arg2 -container containerB arg1 arg2 
   ```
   
   But this may require change for the current code, also you need consider the compatibility. Therefore it is kind of difficult.
   
   Do you have interested in implement this feature? Please let me know.
   
   What I can suggest is using system properties instead for now.
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org