So I'm digging around the source, I think the issue might be related to the
nodeType of the nodeAutoCreationPolicies 

===== AMQChannel.java. lines 3040-3042 =====

Queue.BehaviourOnUnknownDeclareArgument unknownArgumentBehaviour =
                       
getConnection().getContextValue(Queue.BehaviourOnUnknownDeclareArgument.class,
                                                       
Queue.UNKNOWN_QUEUE_DECLARE_ARGUMENT_BEHAVIOUR_NAME);

=================================

would suggest to me that the context value is on the connection rather than
on the queue itself.

However attempting to configure a nodeType "connection" throws an error too:

"The node type of a NodeAutoCreationPolicy must be a valid child type of a
VirtualHost, 'connection' is not."

even though both Queue and Connection are interfaces which extend
ConfiguredObject.


And as you can tell, I'm thoroughly lost.

I'm only mentioning this in the hope that this triggers an idea for someone.

Here's what my virtualhostnodes 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\"}}}] }"
    }
  ]
===========




--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

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

Reply via email to