You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "William Henry (Created) (JIRA)" <ji...@apache.org> on 2011/12/13 19:38:30 UTC

[jira] [Created] (QPID-3681) A Python Example using registered listeners/callbacks

A Python Example using registered listeners/callbacks
-----------------------------------------------------

                 Key: QPID-3681
                 URL: https://issues.apache.org/jira/browse/QPID-3681
             Project: Qpid
          Issue Type: Improvement
          Components: Qpid Examples
    Affects Versions: 0.12
            Reporter: William Henry


The attached example demonstrates how to register a callback function in Python when using multiple Receivers. 

The next_receiver() can be used to lookup a map of registered callbacks. The callback is called with the message for specialized handling based on the receiver.

--
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

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Commented] (QPID-3681) A Python Example using registered listeners/callbacks

Posted by "William Henry (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-3681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168597#comment-13168597 ] 

William Henry commented on QPID-3681:
-------------------------------------

You do not have to do anything special to run this. Simply run from command line while the qpidd (service) is running.
                
> A Python Example using registered listeners/callbacks
> -----------------------------------------------------
>
>                 Key: QPID-3681
>                 URL: https://issues.apache.org/jira/browse/QPID-3681
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Qpid Examples
>    Affects Versions: 0.12
>            Reporter: William Henry
>         Attachments: callbacks
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The attached example demonstrates how to register a callback function in Python when using multiple Receivers. 
> The next_receiver() can be used to lookup a map of registered callbacks. The callback is called with the message for specialized handling based on the receiver.

--
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

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3681) A Python Example using registered listeners/callbacks

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

William Henry updated QPID-3681:
--------------------------------

    Attachment: multisession_with_listener

Tidied up some comments. Woops
                
> A Python Example using registered listeners/callbacks
> -----------------------------------------------------
>
>                 Key: QPID-3681
>                 URL: https://issues.apache.org/jira/browse/QPID-3681
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Qpid Examples
>    Affects Versions: 0.12
>            Reporter: William Henry
>         Attachments: callbacks, multisession_with_listener, multisession_with_listener
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The attached example demonstrates how to register a callback function in Python when using multiple Receivers. 
> The next_receiver() can be used to lookup a map of registered callbacks. The callback is called with the message for specialized handling based on the receiver.

--
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

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3681) A Python Example using registered listeners/callbacks

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

William Henry updated QPID-3681:
--------------------------------

    Attachment: multisession_with_listener

This version defines a Listener class and a SessionsConnection class that handles listening across multiple sessions.
                
> A Python Example using registered listeners/callbacks
> -----------------------------------------------------
>
>                 Key: QPID-3681
>                 URL: https://issues.apache.org/jira/browse/QPID-3681
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Qpid Examples
>    Affects Versions: 0.12
>            Reporter: William Henry
>         Attachments: callbacks, multisession_with_listener
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The attached example demonstrates how to register a callback function in Python when using multiple Receivers. 
> The next_receiver() can be used to lookup a map of registered callbacks. The callback is called with the message for specialized handling based on the receiver.

--
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

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] [Updated] (QPID-3681) A Python Example using registered listeners/callbacks

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

William Henry updated QPID-3681:
--------------------------------

    Attachment: callbacks

The Pyhton example program for using registered listener/callback when using multiple receivers.
                
> A Python Example using registered listeners/callbacks
> -----------------------------------------------------
>
>                 Key: QPID-3681
>                 URL: https://issues.apache.org/jira/browse/QPID-3681
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Qpid Examples
>    Affects Versions: 0.12
>            Reporter: William Henry
>         Attachments: callbacks
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The attached example demonstrates how to register a callback function in Python when using multiple Receivers. 
> The next_receiver() can be used to lookup a map of registered callbacks. The callback is called with the message for specialized handling based on the receiver.

--
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

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org