Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 71498 invoked from network); 16 Dec 2008 10:31:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Dec 2008 10:31:10 -0000 Received: (qmail 66948 invoked by uid 500); 16 Dec 2008 10:31:18 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 66893 invoked by uid 500); 16 Dec 2008 10:31:18 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 66832 invoked by uid 99); 16 Dec 2008 10:31:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 02:31:18 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2008 10:31:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 70897234C39C for ; Tue, 16 Dec 2008 02:30:44 -0800 (PST) Message-ID: <1676519187.1229423444459.JavaMail.jira@brutus> Date: Tue, 16 Dec 2008 02:30:44 -0800 (PST) From: "Ron Gavlin (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-180) JMS Transport support for transaction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656937#action_12656937 ] Ron Gavlin commented on CXF-180: -------------------------------- One other note to address Christian's question: "How will we handle the case when a transaction fails? ". Currently, it appears Artix relies on the maxRedeliveries setting of the broker to avoid re-sending the same message an infinite number of times. Once maxRedeliveries has been reached, the broker will remove the message from the queue and place it in the broker's DLQ. /Ron > JMS Transport support for transaction > ------------------------------------- > > Key: CXF-180 > URL: https://issues.apache.org/jira/browse/CXF-180 > Project: CXF > Issue Type: New Feature > Components: Transports > Affects Versions: 2.1 > Reporter: Willem Jiang > Assignee: Willem Jiang > Fix For: 2.0.10, 2.1.4, 2.2 > > > Here are some points on the JMS Transport stuff: > [ulhas] > Currently JMS Session pool in Artix uses different Message Receiver > acknowledgement mechanism than Celtix to provide Transaction support. > (Celtix uses AUTO_ACKNOWLEDGEMENT) whereas Artix uses CLIENT_ACKNOWLEDGE > for server side. > [Willem] > AUTO_ACKNOWLEDGMENT just make sure JMS broker client > received the message, but not sure about the client had processed the message. > If we want to support the Transaction in CXF, I think we need to change to > CLIENT_ACKNOWLEDGE to make sure the message had been processed in > message level. > [ulhas] > Second part of the transaction support is in current JMSServerTransport > postDispatch code. This is the place where the server make sure that the > message received can be processed and it is safe to send the > Acknowledgement to JMS broker to remove the message from topic/queue and > commit. > [Willem] > In current CXF JMS Transport implementation the transport just provide an channel > to send and receive messages. All the message handling stuff need to play with the > Stream. I think it is a good place in the OutputStream close method to send > acknowledgment to JMS broker. > So if we want to support local transaction in CXF JMS, we just need change the Session > acknowledgment and the OutputStream close method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.