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

ASF GitHub Bot commented on PROTON-1098:
----------------------------------------

GitHub user SreeramGarlapati opened a pull request:

    https://github.com/apache/qpid-proton/pull/54

    support one or more data sections in amqpMessage

    This is a suggestion on how to implement the feature request PROTON-1098 
and is NOT COMPLETE, although, the code works (while sending the message - I am 
able to send an AmqpMessage with Multiple Data sections using this 
implementation).
    
    Usage:
    While sending a Message, instead of creating the message with Data section, 
the following can be done:
                Message amqpMessage = Proton.message();
                amqpMessage.setBody(new DataList(dataList))
    
    (tagging the proton-j expert: @gemmellr to do the needful)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/SreeramGarlapati/qpid-proton 
amqpMsg.supportOneOrMoreDataSections

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/qpid-proton/pull/54.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #54
    
----
commit 76559ad506e1c26aed98cadd601ddb56899607fe
Author: Sreeram Garlapati <sreer...@microsoft.com>
Date:   2016-01-13T18:05:45Z

    proton-j: Support one or more Data sections in AmqpMessage

commit b6de9ba02819492a802211d80ce0acd2e3f2f3cb
Author: Sreeram Garlapati <sreer...@microsoft.com>
Date:   2016-01-13T18:06:15Z

    proton-j: Support one or more Data sections in AmqpMessage

----


> Add support for one or More Data Sections in AmqpMessage
> --------------------------------------------------------
>
>                 Key: PROTON-1098
>                 URL: https://issues.apache.org/jira/browse/PROTON-1098
>             Project: Qpid Proton
>          Issue Type: New Feature
>          Components: proton-j
>    Affects Versions: 0.12.0
>            Reporter: Sreeram Garlapati
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> As per Amqp 1.0 spec: 
> http://docs.oasis-open.org/amqp/core/v1.0/amqp-core-complete-v1.0.pdf, 
> AmqpMessage MessageFormat:0 should allow having one or more data sections. 
> Reference from the Spec:
> "Thebodyconsistsofoneofthefollowingthreechoices: 
> oneormoredatasections,oneormoreamqp-sequence sections, or a single amqp-value 
> section".
> This is a feature request from Windows Azure EventHubs team. This is heavily 
> used for enabling critical scenarios. I deeply Appreciate your help here.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to