Return-Path: Delivered-To: apmail-ws-synapse-dev-archive@www.apache.org Received: (qmail 66120 invoked from network); 16 Sep 2007 03:04:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Sep 2007 03:04:27 -0000 Received: (qmail 96859 invoked by uid 500); 16 Sep 2007 03:04:19 -0000 Delivered-To: apmail-ws-synapse-dev-archive@ws.apache.org Received: (qmail 96826 invoked by uid 500); 16 Sep 2007 03:04:19 -0000 Mailing-List: contact synapse-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: synapse-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list synapse-dev@ws.apache.org Received: (qmail 96815 invoked by uid 99); 16 Sep 2007 03:04:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Sep 2007 20:04:19 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ruwan.linton@gmail.com designates 209.85.128.189 as permitted sender) Received: from [209.85.128.189] (HELO fk-out-0910.google.com) (209.85.128.189) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2007 03:04:17 +0000 Received: by fk-out-0910.google.com with SMTP id f40so1218788fka for ; Sat, 15 Sep 2007 20:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=ocbobiK0k+UH/iqmca5qqMqVDUARVWHdCQRF8JQwhqA=; b=cTRfu9SXVdGuqoBsqJUJALJw7W/Pbhcrlbb1Oleth0mE8lu2nLtRJSb1e58bMLFitmxeS8n6yWT1A9UCSLRAlcdNI7v1GGMf7SySyMfrPGTjf4v1iuJsYVpSuSTZ0isejW9JuiSUzrnhSoOjCXiL0SPeLC/YWaCXvm5qKwEZqU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=qbNVYkYirXRq048OfjZm5rfaSHdccSZL41a4b/IAXCLxklu9y23G0uuprx7xlCA4l6wRab94kCw02MFXRho6ecCVU0dAIuXGzwloRB5if6A8rodDZyNDOoVpWp4mnzMGHYzrzVSN2xXVswwguJhuPopr78RCw6EmbzEAYbgewAc= Received: by 10.82.175.17 with SMTP id x17mr3707293bue.1189911834869; Sat, 15 Sep 2007 20:03:54 -0700 (PDT) Received: by 10.82.179.18 with HTTP; Sat, 15 Sep 2007 20:03:54 -0700 (PDT) Message-ID: <672a01200709152003u3e86cb27laed10f566b291587@mail.gmail.com> Date: Sun, 16 Sep 2007 09:03:54 +0600 From: "Ruwan Linton" To: synapse-dev@ws.apache.org Subject: Re: Hot deployment and hot update support of mediators In-Reply-To: <46EC9782.8040904@wso2.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5083_28718192.1189911834863" References: <672a01200709132232h1227fb09jbbd6f4cde8539293@mail.gmail.com> <46EC9782.8040904@wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_5083_28718192.1189911834863 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Asankha, We can do this by removing the deployer entry from the axis2 xml (may be we can keep it commented so that users has to just uncomment the config line in the axis2 xml to enable it). Or do we have to provide a configuration to start or stop the deployer in the Synapse configuration??? BTW: I saw the POJO deployer configuration was there already in the axis2.xml. Are we using that???? Any how that POJO deployer will start a new thread. If this is not necessary we can remove that too. Thanks, Ruwan. On 9/16/07, Asankha C. Perera wrote: > > Ruwan > > Though this is something really good.. I am a bit concerned as it seems > to be a JDK provider independent implementation of the Service Provider > model. The problem I see is in polling a directory for files to appear > (I am ok doing this one time during startup).. thus I think it should be > turned off by default at Synapse and we should provide the instructions > to turn it on. While off it should not poll the directory or have any > new thread started. > > thanks > asankha > > Ruwan Linton wrote: > > Hi all, > > > > I have done a MediatorDeployer to support hot deployment of mediators > > (r575533) which basically is an Axis2 Deployer which is keeping an eye > > on a specified folder and gives the control to the deploy method on > > any file change of specified extensions. > > > > I have put the folder as repository/mediators for mediator lookup and > > the extension as .jar, which is configurable through the axis2.xml in > > the repository/conf. > > > > This implementation does not use the service providers concept because > > it is only supported by the sun jdk. Instead I read the same file > > (META-INF/services/org.apache.synapse.config.xml.MediatorFactory) in > > the deployer to find the factory implementation and Class.forName that > > factory, so that all the required classes will be loaded. Then the > > deployer will register the factory implementation with the > > MediatorFactoryFinder. Did the same for serializer as well. > > > > If a particular jar contains several mediators then you have to > > specify the factory implementations separated by line breaks in the > > org.apache.synapse.config.xml.MediatorFactory file. As usual it is > > required to present this file and at least one entry should be there > > and Serializer is optional. > > > > Any comments ..... > > > > Thanks, > > Ruwan > > > > -- > > Ruwan Linton > > http://www.wso2.org - "Oxygenating the Web Services Platform" > > --------------------------------------------------------------------- > To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org > For additional commands, e-mail: synapse-dev-help@ws.apache.org > > -- Ruwan Linton http://www.wso2.org - "Oxygenating the Web Services Platform" ------=_Part_5083_28718192.1189911834863 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Asankha,

We can do this by removing the deployer entry from the axis2 xml (may be we can keep it commented so that users has to just uncomment the config line in the axis2 xml to enable it). Or do we have to provide a configuration to start or stop the deployer in the Synapse configuration???

BTW: I saw the POJO deployer configuration was there already in the axis2.xml. Are we using that???? Any how that POJO deployer will start a new thread. If this is not necessary we can remove that too.

Thanks,
Ruwan.

On 9/16/07, Asankha C. Perera <asankha@wso2.com> wrote:
Ruwan

Though this is something really good.. I am a bit concerned as it seems
to be a JDK provider independent implementation of the Service Provider
model. The problem I see is in polling a directory for files to appear
(I am ok doing this one time during startup).. thus I think it should be
turned off by default at Synapse and we should provide the instructions
to turn it on. While off it should not poll the directory or have any
new thread started.

thanks
asankha

Ruwan Linton wrote:
> Hi all,
>
> I have done a MediatorDeployer to support hot deployment of mediators
> (r575533) which basically is an Axis2 Deployer which is keeping an eye
> on a specified folder and gives the control to the deploy method on
> any file change of specified extensions.
>
> I have put the folder as repository/mediators for mediator lookup and
> the extension as .jar, which is configurable through the axis2.xml in
> the repository/conf.
>
> This implementation does not use the service providers concept because
> it is only supported by the sun jdk. Instead I read the same file
> (META-INF/services/org.apache.synapse.config.xml.MediatorFactory) in
> the deployer to find the factory implementation and Class.forName that
> factory, so that all the required classes will be loaded. Then the
> deployer will register the factory implementation with the
> MediatorFactoryFinder. Did the same for serializer as well.
>
> If a particular jar contains several mediators then you have to
> specify the factory implementations separated by line breaks in the
> org.apache.synapse.config.xml.MediatorFactory file. As usual it is
> required to present this file and at least one entry should be there
> and Serializer is optional.
>
> Any comments .....
>
> Thanks,
> Ruwan
>
> --
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"

---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org




--
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform" ------=_Part_5083_28718192.1189911834863--