[ 
https://issues.apache.org/jira/browse/QPID-8388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17349361#comment-17349361
 ] 

Simon Baptista commented on QPID-8388:
--------------------------------------

Sorry to necro an old issue but I'm having real trouble utilising this from the 
configuration. Can you give an example as to how it's configured in a JSON file?
The documentation for virtualhostInitialConfiguration is lacking.
I've tried many things, this is what my config looks like right now:

"virtualhostnodes": [
 {
 "name": "default",
 "type": "Memory",
 "defaultVirtualHostNode": "true",
 "virtualHostInitialConfiguration" : "\{\"type\": \"Memory\", 
\"nodeAutoCreationPolicies\": 
[{\"pattern\":\".*\",\"createdOnPublish\":\"true\",\"createdOnConsume\":\"true\",\"nodeType\":\"queue\",\"attributes\":{}},
 
\{\"pattern\":\".*\",\"createdOnPublish\":\"true\",\"createdOnConsume\":\"true\",\"nodeType\":\"connection\",\"attributes\":{\"context\":
 {\"queue.behaviourOnUnknownDeclareArgument\":\"IGNORE\"}}}] }"
 }

it's wrong because connection is not a valid node type.

I've also tried setting the context in the policy for the queue nodeType 
without success.

 

Thanks, and apologies again!

> [Broker-J] Allow for configuration to ignore unknown Queue arguments
> --------------------------------------------------------------------
>
>                 Key: QPID-8388
>                 URL: https://issues.apache.org/jira/browse/QPID-8388
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Broker-J
>    Affects Versions: qpid-java-broker-7.1.0, qpid-java-broker-7.1.1, 
> qpid-java-broker-7.1.2, qpid-java-broker-7.1.3, qpid-java-broker-7.1.4, 
> qpid-java-broker-7.1.5, qpid-java-broker-7.1.6
>            Reporter: Leo Keogh
>            Assignee: Robert Godfrey
>            Priority: Major
>             Fix For: qpid-java-broker-7.1.7
>
>
> As with issue https://issues.apache.org/jira/browse/QPID-8377 when using 
> Broker-J as an embedded test broker in place of an alternative AMQP 0-x 
> implementation, it can be useful to configure the broker to ignore *Queue 
> Declare* options that it does not support (rather than the default policy of 
> this causing a connection closure with error).
> The queue we wish to test has the argument *x-single-active-consumer* with 
> causes the qpid test broker to fail with "Unsupported queue declare 
> argument(s) : x-single-active-consumer" in log
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to