Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 16962 invoked from network); 6 Dec 2005 21:20:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Dec 2005 21:20:47 -0000 Received: (qmail 47857 invoked by uid 500); 6 Dec 2005 21:20:26 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 47733 invoked by uid 500); 6 Dec 2005 21:20:25 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 47657 invoked by uid 99); 6 Dec 2005 21:20:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 13:20:25 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DATE_IN_PAST_12_24 X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [194.250.131.236] (HELO smtp-wifi.orange.fr) (194.250.131.236) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 13:20:24 -0800 Received: from [172.23.172.239] (81.253.64.42) by smtp-wifi.orange.fr (7.0.031.3) id 41628E4300189B53; Tue, 6 Dec 2005 22:26:10 +0100 Subject: Re: [Axis2] Where to start the out messages in the handler flow? From: Sanjiva Weerawarana To: axis-dev@ws.apache.org Cc: sandesha-dev@ws.apache.org In-Reply-To: <9d4ec10b0511170932x66247233n3851afcd2f394944@mail.gmail.com> References: <2879.149.159.132.72.1132200857.squirrel@webmail7.pair.com> <9d4ec10b0511170932x66247233n3851afcd2f394944@mail.gmail.com> Content-Type: text/plain Organization: Lanka Software Foundation Date: Tue, 06 Dec 2005 14:51:02 +0600 Message-Id: <1133859065.21103.42.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Thu, 2005-11-17 at 23:32 +0600, Chamikara Jayalath wrote: > Hi All, > > I believe we should go for a simple and most flexible design. As u > guys have explained there are two main methods to handle a protocol > specific messages. > > 1. Handling it at a Handler. > 2. Handling it at a Operation. > > I believe the decision has to be given to the module implementor. Sorry to join this thread late .. +1 to your proposal that we mustn't restrict module implementors from doing it any way they want. On the original question- my thinking is governed from an outside view of Axis2: looking from outside I see messages going in and other messages going out. I don't care whether a message is originating from a service impl or a handler or a horse in the middle .. its coming out of the system. Then, I want the outflow handlers to be invoked against that message. So, if I've said "hey I want all that whacky security stuff to come into play for outgoing messages", then a message originated by a module implementor falls into that bucket too. OTOH if the user has indicated that only responses from operation foo are to be signed and encrypted, then something like a create sequence response message will not get signed and encrypted because the outflow will not have that. Modules are extensions of the core runtime. However, if the user has requested certain policies be adhered to, then those policies must be applied to any messages that are generated from modules too; or else we have a hole. Sanjiva.