Hi Shradha, I implemented the un-deploy part and committed the change. As usual, a snapshot build containing the change will be available within the next 12 hours.
Andreas On Fri, Jan 23, 2009 at 10:07, <[email protected]> wrote: > Hi Andreas, > > The solution worked perfectly for our requirements at POC stage(except > for the undeploy part). > But I guess we may face some real time challenges during project > implementation. :):) > > We don't need the undeploy part urgently. > > I just wanted to ensure that it is feasible, else what are the other > options I can go for dynamic deploy/un-deploy of proxy configuration. > > > --------------- > > Regards, > > Shradha > > > -----Original Message----- > From: Andreas Veithen [mailto:[email protected]] > Sent: Friday, January 23, 2009 4:19 AM > To: [email protected] > Subject: Re: Dynamically loading proxy configuration in synapse.xml > > Shradha, > > The undeploy part of the custom deployer is not yet implemented. I will > try to find some time to do this during the next days. Except from this > issue and the fact that the deployment fails at startup, what is your > experience with the solution? Does it work for you? > > Regards, > > Andreas > > On Mon, Jan 19, 2009 at 10:13, <[email protected]> wrote: >> Hi Andreas, >> >> I was trying to un-deploy a proxy configuration, by deleting the >> corresponding proxy file, we had dropped into the <repository>/proxies > >> directory for hot deployment. But it seems synapse doesn't trigger the > >> removal of the proxy configurations. >> >> Is there any other way to do it? >> >> (Please refer to the below mail for the synapse build I am using. ) >> >> >> --------------- >> >> Regards, >> >> Shradha >> >> >> -----Original Message----- >> From: Andreas Veithen [mailto:[email protected]] >> Sent: Tuesday, December 30, 2008 11:45 PM >> To: [email protected] >> Subject: Re: Dynamically loading proxy configuration in synapse.xml >> >> Hi Shradha, >> >> This is not yet supported by Synapse (see [1] for a similar request). >> I think that it is possible to satisfy this requirement by >> implementing an Axis2 custom deployer. I put together a working >> proof-of-concept (well, more or less working, see below), which will >> be available in the next nightly build (build #222; see [2]). >> >> In order to play with it, you need to do the following: >> >> 1) In axis2.xml, add the following line: >> >> <deployer extension="xml" directory="proxies" >> class="org.apache.synapse.experimental.ProxyDeployer"/> >> >> 2) Still in axis2.xml, change the "hotdeployment" parameter to true. >> >> 3) In your repository, create a directory called "proxies". >> >> 4) Start up Synapse. >> >> 5) Drop a file into the "proxies" directory with the proxy definition. >> The suffix must be ".xml" and the root element "proxy" (in the >> standard Synapse configuration namespace): >> >> <proxy xmlns="http://ws.apache.org/ns/synapse" name="..."> ... >> </proxy> >> >> Synapse will then automatically deploy this new proxy. >> >> The bad news is that for the moment it only works in hot deployment >> mode, i.e. if the file is added after Synapse has been started. >> Deployment of the proxy service fails if the file is already present >> during startup. The reason is that the custom deployer requires access > >> to the SynapseConfiguration object, which is created by the >> SynapseInitializationModule. However, this module is only initialized >> after Axis2 attempts the deployment. This problem is of course a >> show-stopper, but maybe somebody else on this list has a brilliant >> idea how to change the order in which things happen at startup? >> >> Regards, >> >> Andreas >> >> [1] https://issues.apache.org/jira/browse/SYNAPSE-346 >> [2] >> http://hudson.zones.apache.org/hudson/job/Synapse%20-%20Trunk/org.apac >> he .synapse$synapse-distribution/lastBuild/ >> >> On Tue, Dec 30, 2008 at 12:29, <[email protected]> wrote: >>> Hi All, >>> >>> I have a requirement in which after starting synapse, I need to add >>> proxy configurations to synapse.xml. >>> >>> But I guess synapse does not dynamically reload the proxy >>> configurations and I need to restart my synapse ( which may result in > >>> existing proxy services getting stopped ) >>> >>> I want my ESB to act as a proxy for different endpoints routing the >>> messages through the same insequence. >>> >>> And I want to dynamically add these proxy configurations when I need. >>> >>> What are the possible ways to achieve my objective? >>> >>> --------------- >>> >>> Thanks, >>> >>> Shradha >>> >>> >>> >>> Please do not print this email unless it is absolutely necessary. >>> >>> The information contained in this electronic message and any >> attachments to this message are intended for the exclusive use of the >> addressee(s) and may contain proprietary, confidential or privileged >> information. If you are not the intended recipient, you should not >> disseminate, distribute or copy this e-mail. Please notify the sender >> immediately and destroy all copies of this message and any > attachments. >>> >>> WARNING: Computer viruses can be transmitted via email. The recipient >> should check this email and any attachments for the presence of > viruses. >> The company accepts no liability for any damage caused by any virus >> transmitted by this email. >>> >>> www.wipro.com >>> >> >> Please do not print this email unless it is absolutely necessary. >> >> The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > addressee(s) and may contain proprietary, confidential or privileged > information. If you are not the intended recipient, you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately and destroy all copies of this message and any attachments. >> >> WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. > The company accepts no liability for any damage caused by any virus > transmitted by this email. >> >> www.wipro.com >> > > Please do not print this email unless it is absolutely necessary. > > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and may > contain proprietary, confidential or privileged information. If you are not > the intended recipient, you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately and destroy all copies of this > message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient should > check this email and any attachments for the presence of viruses. The company > accepts no liability for any damage caused by any virus transmitted by this > email. > > www.wipro.com >
