From sandesha-dev-return-3270-apmail-ws-sandesha-dev-archive=ws.apache.org@ws.apache.org Wed Sep 19 10:03:33 2007 Return-Path: Delivered-To: apmail-ws-sandesha-dev-archive@www.apache.org Received: (qmail 86849 invoked from network); 19 Sep 2007 10:03:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Sep 2007 10:03:31 -0000 Received: (qmail 78159 invoked by uid 500); 19 Sep 2007 10:03:23 -0000 Delivered-To: apmail-ws-sandesha-dev-archive@ws.apache.org Received: (qmail 77951 invoked by uid 500); 19 Sep 2007 10:03:23 -0000 Mailing-List: contact sandesha-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list sandesha-dev@ws.apache.org Received: (qmail 77940 invoked by uid 500); 19 Sep 2007 10:03:22 -0000 Delivered-To: apmail-ws-sandesha-cvs@ws.apache.org Received: (qmail 77937 invoked by uid 99); 19 Sep 2007 10:03:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 03:03:22 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2007 10:05:26 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C81531A9832; Wed, 19 Sep 2007 03:03:07 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r577232 - in /webservices/sandesha/branches/sandesha2/java/1_3/modules: core/src/main/java/org/apache/sandesha2/handlers/MessageContextCorrectionHandler.java mar/module.xml Date: Wed, 19 Sep 2007 10:03:07 -0000 To: sandesha-cvs@ws.apache.org From: deepal@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070919100307.C81531A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: deepal Date: Wed Sep 19 03:03:05 2007 New Revision: 577232 URL: http://svn.apache.org/viewvc?rev=577232&view=rev Log: when a duplicate message comes to the system Sandesha pick the message context and that some time has a property saying addressing headers processed so we need to reset that for each requests. otherwise Axis2 gives errors Added: webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/MessageContextCorrectionHandler.java Modified: webservices/sandesha/branches/sandesha2/java/1_3/modules/mar/module.xml Added: webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/MessageContextCorrectionHandler.java URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/MessageContextCorrectionHandler.java?rev=577232&view=auto ============================================================================== --- webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/MessageContextCorrectionHandler.java (added) +++ webservices/sandesha/branches/sandesha2/java/1_3/modules/core/src/main/java/org/apache/sandesha2/handlers/MessageContextCorrectionHandler.java Wed Sep 19 03:03:05 2007 @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.sandesha2.handlers; + +import org.apache.axis2.AxisFault; +import org.apache.axis2.context.MessageContext; +import org.apache.axis2.handlers.AbstractHandler; + +/** + * This handler's only job is to to adjust a set of properties in + * message context when receiving duplicate messages + */ +public class MessageContextCorrectionHandler extends AbstractHandler { + + public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { + msgContext.setProperty("IsAddressingProcessed", Boolean.FALSE); + return InvocationResponse.CONTINUE; + } +} Modified: webservices/sandesha/branches/sandesha2/java/1_3/modules/mar/module.xml URL: http://svn.apache.org/viewvc/webservices/sandesha/branches/sandesha2/java/1_3/modules/mar/module.xml?rev=577232&r1=577231&r2=577232&view=diff ============================================================================== --- webservices/sandesha/branches/sandesha2/java/1_3/modules/mar/module.xml (original) +++ webservices/sandesha/branches/sandesha2/java/1_3/modules/mar/module.xml Wed Sep 19 03:03:05 2007 @@ -8,9 +8,13 @@ + + + + - + --------------------------------------------------------------------- To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org For additional commands, e-mail: sandesha-dev-help@ws.apache.org