You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Pavel Moravec (JIRA)" <ji...@apache.org> on 2012/07/18 13:19:34 UTC

[jira] [Created] (QPID-4146) JMS client: node binding not created for topic node

Pavel Moravec created QPID-4146:
-----------------------------------

             Summary: JMS client: node binding not created for topic node
                 Key: QPID-4146
                 URL: https://issues.apache.org/jira/browse/QPID-4146
             Project: Qpid
          Issue Type: Bug
          Components: Java Client
    Affects Versions: 0.14
            Reporter: Pavel Moravec
            Priority: Trivial


When creating a topic (an exchange in qpid terminology) with x-bindings within node: scope, the binding is not created. See this simple reproducer:

qpid-config add queue q
export CLASSPATH=$(find "/usr/share/java/" -name '*.jar' | tr '\n' ":")
cd /usr/share/doc/qpid-java-0.14/examples
./run_example.sh org.apache.qpid.example.Spout --content="msg1" "ex/key;{ create: always, node: { type: topic, x-bindings: [{ exchange:'ex', queue: 'q', key: 'key' }]}}"


qpid-config exchanges -b    then shows no binding from 'ex' exchange.

Simple patch to be attached.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Resolved] (QPID-4146) JMS client: node binding not created for topic node

Posted by "Rajith Attapattu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu resolved QPID-4146.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.19
         Assignee: Rajith Attapattu

Patch applied.
                
> JMS client: node binding not created for topic node
> ---------------------------------------------------
>
>                 Key: QPID-4146
>                 URL: https://issues.apache.org/jira/browse/QPID-4146
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Assignee: Rajith Attapattu
>            Priority: Trivial
>              Labels: addressing
>             Fix For: 0.19
>
>         Attachments: bz726687.patch
>
>
> When creating a topic (an exchange in qpid terminology) with x-bindings within node: scope, the binding is not created. See this simple reproducer:
> qpid-config add queue q
> export CLASSPATH=$(find "/usr/share/java/" -name '*.jar' | tr '\n' ":")
> cd /usr/share/doc/qpid-java-0.14/examples
> ./run_example.sh org.apache.qpid.example.Spout --content="msg1" "ex/key;{ create: always, node: { type: topic, x-bindings: [{ exchange:'ex', queue: 'q', key: 'key' }]}}"
> qpid-config exchanges -b    then shows no binding from 'ex' exchange.
> Simple patch to be attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (QPID-4146) JMS client: node binding not created for topic node

Posted by "Rob Godfrey (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Godfrey updated QPID-4146:
------------------------------

    Labels: addressing  (was: patch)
    
> JMS client: node binding not created for topic node
> ---------------------------------------------------
>
>                 Key: QPID-4146
>                 URL: https://issues.apache.org/jira/browse/QPID-4146
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Priority: Trivial
>              Labels: addressing
>         Attachments: bz726687.patch
>
>
> When creating a topic (an exchange in qpid terminology) with x-bindings within node: scope, the binding is not created. See this simple reproducer:
> qpid-config add queue q
> export CLASSPATH=$(find "/usr/share/java/" -name '*.jar' | tr '\n' ":")
> cd /usr/share/doc/qpid-java-0.14/examples
> ./run_example.sh org.apache.qpid.example.Spout --content="msg1" "ex/key;{ create: always, node: { type: topic, x-bindings: [{ exchange:'ex', queue: 'q', key: 'key' }]}}"
> qpid-config exchanges -b    then shows no binding from 'ex' exchange.
> Simple patch to be attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (QPID-4146) JMS client: node binding not created for topic node

Posted by "Pavel Moravec (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Moravec updated QPID-4146:
--------------------------------

    Attachment: bz726687.patch

See client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java file:
sendQueueBind method (that invokes getQpidSession().exchangeBind method for requesting the binding to be created) is called from handleAddressBasedDestination just for AMQDestination.QUEUE_TYPE case. I.e. only when the node is queue type and not topic.

The call of the sendQueueBind method should be irrelevant whether the node is queue or topic and whether the node already exists or not. It should be called only when the create: policy evaluates to true.
                
> JMS client: node binding not created for topic node
> ---------------------------------------------------
>
>                 Key: QPID-4146
>                 URL: https://issues.apache.org/jira/browse/QPID-4146
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.14
>            Reporter: Pavel Moravec
>            Priority: Trivial
>              Labels: patch
>         Attachments: bz726687.patch
>
>
> When creating a topic (an exchange in qpid terminology) with x-bindings within node: scope, the binding is not created. See this simple reproducer:
> qpid-config add queue q
> export CLASSPATH=$(find "/usr/share/java/" -name '*.jar' | tr '\n' ":")
> cd /usr/share/doc/qpid-java-0.14/examples
> ./run_example.sh org.apache.qpid.example.Spout --content="msg1" "ex/key;{ create: always, node: { type: topic, x-bindings: [{ exchange:'ex', queue: 'q', key: 'key' }]}}"
> qpid-config exchanges -b    then shows no binding from 'ex' exchange.
> Simple patch to be attached.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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