You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by clebertsuconic <gi...@git.apache.org> on 2016/09/19 21:09:45 UTC

[GitHub] activemq-artemis pull request #782: ARTEMIS-738 Improving TX support on AMQP

GitHub user clebertsuconic opened a pull request:

    https://github.com/apache/activemq-artemis/pull/782

    ARTEMIS-738 Improving TX support on AMQP

    https://issues.apache.org/jira/browse/ARTEMIS-738

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

    $ git pull https://github.com/clebertsuconic/activemq-artemis tx

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

    https://github.com/apache/activemq-artemis/pull/782.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 #782
    
----
commit c98988219ec2b5b77d74ff435064359b741d03cf
Author: Clebert Suconic <cl...@apache.org>
Date:   2016-09-15T19:28:07Z

    ARTEMIS-738 Improving TX support on AMQP
    
    https://issues.apache.org/jira/browse/ARTEMIS-738

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] activemq-artemis pull request #782: ARTEMIS-738 Improving TX support on AMQP

Posted by gemmellr <gi...@git.apache.org>.
Github user gemmellr commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/782#discussion_r79623050
  
    --- Diff: artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSessionContext.java ---
    @@ -60,6 +61,9 @@ public int serverDelivery(Object message, Object consumer, int deliveryCount) th
     
        public void addTransactionHandler(Coordinator coordinator, Receiver receiver) {
           ProtonTransactionHandler transactionHandler = new ProtonTransactionHandler(sessionSPI);
    +
    +      coordinator.setCapabilities(Symbol.getSymbol("[\"amqp:local-transactions\",\"amqp:multi-txns-per-ssn\",\"amqp:multi-ssns-per-txn\"]"));
    --- End diff --
    
    Yep.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] activemq-artemis issue #782: ARTEMIS-738 Improving TX support on AMQP

Posted by clebertsuconic <gi...@git.apache.org>.
Github user clebertsuconic commented on the issue:

    https://github.com/apache/activemq-artemis/pull/782
  
    @mtaylor / @gemmellr  This is now ready to merge... 
    
    (tagging you guys since you both commented on this PR before)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] activemq-artemis pull request #782: ARTEMIS-738 Improving TX support on AMQP

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/activemq-artemis/pull/782


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] activemq-artemis pull request #782: ARTEMIS-738 Improving TX support on AMQP

Posted by mtaylor <gi...@git.apache.org>.
Github user mtaylor commented on a diff in the pull request:

    https://github.com/apache/activemq-artemis/pull/782#discussion_r79620023
  
    --- Diff: artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSessionContext.java ---
    @@ -60,6 +61,9 @@ public int serverDelivery(Object message, Object consumer, int deliveryCount) th
     
        public void addTransactionHandler(Coordinator coordinator, Receiver receiver) {
           ProtonTransactionHandler transactionHandler = new ProtonTransactionHandler(sessionSPI);
    +
    +      coordinator.setCapabilities(Symbol.getSymbol("[\"amqp:local-transactions\",\"amqp:multi-txns-per-ssn\",\"amqp:multi-ssns-per-txn\"]"));
    --- End diff --
    
    Like this:
    ```java
                coordinator.setCapabilities(Symbol.getSymbol("amqp:local-transactions"),
                                                           Symbol.getSymbol("amqp:multi-txns-per-ssn"),
                                                           Symbol.getSymbol("amqp:multi-ssns-per-txn"));
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] activemq-artemis issue #782: ARTEMIS-738 Improving TX support on AMQP

Posted by clebertsuconic <gi...@git.apache.org>.
Github user clebertsuconic commented on the issue:

    https://github.com/apache/activemq-artemis/pull/782
  
    Please, don't merge this yet...  there's an issue with connections dropping and rolling back TXs.
    
    The Transactions should be at the connection and should be rolled back when the connection failed. I will ammend this tomorrow. It's a small refactoring and I should finish it quickly.
    
    
    But this serves as a review point already.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---