You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Adel Boutros (JIRA)" <ji...@apache.org> on 2016/07/07 07:59:11 UTC
[jira] [Comment Edited] (DISPATCH-415) Dynamic port allocation from
the command line
[ https://issues.apache.org/jira/browse/DISPATCH-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15365775#comment-15365775 ]
Adel Boutros edited comment on DISPATCH-415 at 7/7/16 7:58 AM:
---------------------------------------------------------------
Hello [~ganeshmurthy],
Allow me to disagree, you can configure as many ports as you like in Qpid Java Broker. The ports part in the config.json is an array and I have already configured a broker with at least 4 ports.
In the below example, I have 4 ports configured:
"ports" : [ {
"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" : ".*"
} ]
}, {
"id" : "6af49d6a-9c09-4a86-90ca-6ffea0184a9a",
"name" : "AMQPS",
"type" : "AMQP",
"authenticationProvider" : "anonymous",
"keyStore" : "SslKeyStore",
"needClientAuth" : false,
"port" : "10300",
"protocols" : [ "AMQP_1_0" ],
"transports" : [ "SSL" ],
"wantClientAuth" : false,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465211968339,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465211968339,
"virtualhostaliases" : [ {
"id" : "aa9ebba7-a9ea-4778-8bf9-15f57040bcdf",
"name" : "defaultAlias",
"type" : "defaultAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465211968357,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465211968357
}, {
"id" : "33dc892e-917c-4ed5-bdaa-f4eebbcc45a1",
"name" : "hostnameAlias",
"type" : "hostnameAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465211968360,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465211968360
}, {
"id" : "d3ba471b-4f37-457a-8f2e-0b139948ee4c",
"name" : "nameAlias",
"type" : "nameAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465211968355,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465211968355
}, {
"id" : "019dd23e-91a9-40e9-89d3-528e75a2e33a",
"name" : "pattern",
"virtualHostNode" : "default",
"type" : "patternMatchingAlias",
"pattern" : ".*"
} ]
}, {
"id" : "21b2b46c-03b3-46a2-8202-502981fb989f",
"name" : "AMQPS_MUTUAL_AUTHENTICATION",
"type" : "AMQP",
"authenticationProvider" : "anonymous",
"keyStore" : "SslKeyStore",
"needClientAuth" : true,
"port" : "10301",
"protocols" : [ "AMQP_1_0" ],
"transports" : [ "SSL" ],
"trustStores" : [ "SslTrustStore" ],
"wantClientAuth" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465981682544,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465981653764,
"virtualhostaliases" : [ {
"id" : "d296afcc-874f-4d4b-8717-bb730996b707",
"name" : "defaultAlias",
"type" : "defaultAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465981653993,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465981653993
}, {
"id" : "e29391fd-dc9c-46b5-ae08-c858c62e4421",
"name" : "hostnameAlias",
"type" : "hostnameAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465981653994,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465981653994
}, {
"id" : "5be30d03-1106-40ec-986f-a75d61c73593",
"name" : "nameAlias",
"type" : "nameAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465981653981,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465981653981
}, {
"id" : "019dd23e-91a9-40e9-89d3-528e75a2e33b",
"name" : "pattern",
"virtualHostNode" : "default",
"type" : "patternMatchingAlias",
"pattern" : ".*"
} ]
}, {
"id" : "9d9c220e-50f8-4658-a7dd-37424b0def07",
"name" : "HTTP",
"port" : "${qpid.http_port}",
"authenticationProvider" : "anonymous",
"protocols" : [ "HTTP" ]
} ]
was (Author: adelboutros@live.com):
Hello [~ganeshmurthy],
Allow me to disagree, you can configure as many ports as you like in Qpid Java Broker. The ports part in the config.json is an array and I have already configured a broker with at least 3 ports.
In the below example, I have 4 ports configured:
"ports" : [ {
"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" : ".*"
} ]
}, {
"id" : "6af49d6a-9c09-4a86-90ca-6ffea0184a9a",
"name" : "AMQPS",
"type" : "AMQP",
"authenticationProvider" : "anonymous",
"keyStore" : "SslKeyStore",
"needClientAuth" : false,
"port" : "10300",
"protocols" : [ "AMQP_1_0" ],
"transports" : [ "SSL" ],
"wantClientAuth" : false,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465211968339,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465211968339,
"virtualhostaliases" : [ {
"id" : "aa9ebba7-a9ea-4778-8bf9-15f57040bcdf",
"name" : "defaultAlias",
"type" : "defaultAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465211968357,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465211968357
}, {
"id" : "33dc892e-917c-4ed5-bdaa-f4eebbcc45a1",
"name" : "hostnameAlias",
"type" : "hostnameAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465211968360,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465211968360
}, {
"id" : "d3ba471b-4f37-457a-8f2e-0b139948ee4c",
"name" : "nameAlias",
"type" : "nameAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465211968355,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465211968355
}, {
"id" : "019dd23e-91a9-40e9-89d3-528e75a2e33a",
"name" : "pattern",
"virtualHostNode" : "default",
"type" : "patternMatchingAlias",
"pattern" : ".*"
} ]
}, {
"id" : "21b2b46c-03b3-46a2-8202-502981fb989f",
"name" : "AMQPS_MUTUAL_AUTHENTICATION",
"type" : "AMQP",
"authenticationProvider" : "anonymous",
"keyStore" : "SslKeyStore",
"needClientAuth" : true,
"port" : "10301",
"protocols" : [ "AMQP_1_0" ],
"transports" : [ "SSL" ],
"trustStores" : [ "SslTrustStore" ],
"wantClientAuth" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465981682544,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465981653764,
"virtualhostaliases" : [ {
"id" : "d296afcc-874f-4d4b-8717-bb730996b707",
"name" : "defaultAlias",
"type" : "defaultAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465981653993,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465981653993
}, {
"id" : "e29391fd-dc9c-46b5-ae08-c858c62e4421",
"name" : "hostnameAlias",
"type" : "hostnameAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465981653994,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465981653994
}, {
"id" : "5be30d03-1106-40ec-986f-a75d61c73593",
"name" : "nameAlias",
"type" : "nameAlias",
"durable" : true,
"lastUpdatedBy" : "ANONYMOUS",
"lastUpdatedTime" : 1465981653981,
"createdBy" : "ANONYMOUS",
"createdTime" : 1465981653981
}, {
"id" : "019dd23e-91a9-40e9-89d3-528e75a2e33b",
"name" : "pattern",
"virtualHostNode" : "default",
"type" : "patternMatchingAlias",
"pattern" : ".*"
} ]
}, {
"id" : "9d9c220e-50f8-4658-a7dd-37424b0def07",
"name" : "HTTP",
"port" : "${qpid.http_port}",
"authenticationProvider" : "anonymous",
"protocols" : [ "HTTP" ]
} ]
> Dynamic port allocation from the command line
> ---------------------------------------------
>
> Key: DISPATCH-415
> URL: https://issues.apache.org/jira/browse/DISPATCH-415
> Project: Qpid Dispatch
> Issue Type: New Feature
> Reporter: Adel Boutros
>
> As described in this [mail|http://qpid.2158936.n2.nabble.com/Qpid-Dispatch-Dynamic-port-allocation-from-the-command-line-td7646495.html], it would be nice if there was a way to alllocate dynamically ports from the command line as is the case with Qpid Java Broker
> Qpid Java Broker properties reference: https://qpid.apache.org/releases/qpid-java-6.0.3/java-broker/book/Java-Broker-Initial-Configuration-Configuration-Properties.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org