You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Adel Boutros <ad...@live.com> on 2016/06/29 10:42:02 UTC

[Qpid-Dispatch] Dynamic port allocation from the command line

Hello,

In Qpid Java Broker, we can set any port dynamically in the config.json file by using properties and setting them on the command line. Is there something similar for the dispatcher?

config.json
{
    "id" : "17c2023e-1a46-4791-8a2b-cdcb3aa1e23b",
    "name" : "AMQP",
    "port" : "${qpid.amqp_port}",
    "authenticationProvider" : "anonymous",
    "virtualhostaliases" : [ {
      "id" : "019dd23e-91a9-40e9-89d3-528e75a2ea0a",
      "name" : "pattern",
      "virtualHostNode" : "default",
      "type" : "patternMatchingAlias",
      "pattern" : ".*"
    }

Command line
qpid-server -prop qpid.amqp_port=5600

Regards,
Adel
 		 	   		  

Re: [Qpid-Dispatch] Dynamic port allocation from the command line

Posted by Jiri Danek <jd...@redhat.com>.
On Wed, Jun 29, 2016 at 3:05 PM, Adel Boutros <ad...@live.com> wrote:
...

> > > Hello,
> > >
> > > In Qpid Java Broker, we can set any port dynamically in the
> config.json file
> > > by using properties and setting them on the command line. Is there
> something
> > > similar for the dispatcher?
>

Hi,

I understand this would be practical, but I am not a fan of this feature.
Configuration templates is something that should be managed by the
deployment automation of your choice, like puppet or ansible. I dislike it
when applications handle this themselves, because then each implements its
own and mutually incompatible syntax. Slippery slope argument: if
templating is implemented, it is only a question of time when somebody else
asks for if statement...

-- 
Jiří Daněk
Messaging QA

RE: [Qpid-Dispatch] Dynamic port allocation from the command line

Posted by Adel Boutros <ad...@live.com>.
Here it is: https://issues.apache.org/jira/browse/DISPATCH-415 

Regards,
Adel

> Date: Wed, 29 Jun 2016 08:45:58 -0400
> From: gmurthy@redhat.com
> To: users@qpid.apache.org
> Subject: Re: [Qpid-Dispatch] Dynamic port allocation from the command line
> 
> Please add a JIRA for this. Thanks.
> 
> ----- Original Message -----
> > From: "Adel Boutros" <ad...@live.com>
> > To: users@qpid.apache.org
> > Sent: Wednesday, June 29, 2016 6:42:02 AM
> > Subject: [Qpid-Dispatch] Dynamic port allocation from the command line
> > 
> > Hello,
> > 
> > In Qpid Java Broker, we can set any port dynamically in the config.json file
> > by using properties and setting them on the command line. Is there something
> > similar for the dispatcher?
> > 
> > config.json
> > {
> >     "id" : "17c2023e-1a46-4791-8a2b-cdcb3aa1e23b",
> >     "name" : "AMQP",
> >     "port" : "${qpid.amqp_port}",
> >     "authenticationProvider" : "anonymous",
> >     "virtualhostaliases" : [ {
> >       "id" : "019dd23e-91a9-40e9-89d3-528e75a2ea0a",
> >       "name" : "pattern",
> >       "virtualHostNode" : "default",
> >       "type" : "patternMatchingAlias",
> >       "pattern" : ".*"
> >     }
> > 
> > Command line
> > qpid-server -prop qpid.amqp_port=5600
> > 
> > Regards,
> > Adel
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 
 		 	   		  

Re: [Qpid-Dispatch] Dynamic port allocation from the command line

Posted by Ganesh Murthy <gm...@redhat.com>.
Please add a JIRA for this. Thanks.

----- Original Message -----
> From: "Adel Boutros" <ad...@live.com>
> To: users@qpid.apache.org
> Sent: Wednesday, June 29, 2016 6:42:02 AM
> Subject: [Qpid-Dispatch] Dynamic port allocation from the command line
> 
> Hello,
> 
> In Qpid Java Broker, we can set any port dynamically in the config.json file
> by using properties and setting them on the command line. Is there something
> similar for the dispatcher?
> 
> config.json
> {
>     "id" : "17c2023e-1a46-4791-8a2b-cdcb3aa1e23b",
>     "name" : "AMQP",
>     "port" : "${qpid.amqp_port}",
>     "authenticationProvider" : "anonymous",
>     "virtualhostaliases" : [ {
>       "id" : "019dd23e-91a9-40e9-89d3-528e75a2ea0a",
>       "name" : "pattern",
>       "virtualHostNode" : "default",
>       "type" : "patternMatchingAlias",
>       "pattern" : ".*"
>     }
> 
> Command line
> qpid-server -prop qpid.amqp_port=5600
> 
> Regards,
> Adel
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org