Ruwan,

In my development/test environment, I'll continue to stop and start the
process when deploying a new synapse.xml :o). 

But ... what about deployment in a production environment ? I see 2 options.
The first one is that the  ESB admin receives a modified synapse.xml file
and that he copies the content of this file in the GUI and save it into the
registry. This means that the ESB process will dynamically apply the
modifications. The second option is that the ESB admin would stop and start
the ESB instance, but this would mean that the process will be interrupted
:o(.

I would be pleased if someone could give me some best practices to apply for
the deployment in a production environment.

Regards, Stefan Lecho.

Ruwan Linton-3 wrote:
> 
> Hi Stefan,
> 
> stlecho wrote:
>> Would it be feasible to implement a specific "DeployIntoRegistry" Ant
>> task
>> that allows to deploy a modified synapse.xml and automatically trigger
>> the
>> modified file (through calls to the registry API) ?
>>   
> If you put the full synapse.xml file in the registry then it is not 
> dynamic, but if you put the dynamic bits of your configuration to the 
> registry and somehow write an ant task to update the registry that will 
> work for you. As a side note please remember that proxy definition is 
> not dynamic and cannot be referred from the registry, but its parts can
> be.
> 
> Thanks,
> Ruwan
>> Regards, Stefan Lecho.
>>
>> asankha wrote:
>>   
>>> Paul / Stefan
>>>
>>> You could upto a certain level. Samples 9 and 11 shows some of this. But 
>>> this cannot be triggered by an Ant script.
>>>
>>> [1] http://wso2.org/project/esb/java/1.7.1/docs/ESB_Samples.html#Sample9
>>> [2]
>>> http://wso2.org/project/esb/java/1.7.1/docs/ESB_Samples.html#Sample11
>>>
>>> asankha
>>>
>>> Paul Fremantle wrote:
>>>     
>>>> Asankha
>>>>
>>>> Can't Stefan do this using the registry model?
>>>>
>>>> Paul
>>>>
>>>> Asankha C. Perera wrote:
>>>>   
>>>>       
>>>>> Stefan
>>>>>
>>>>> What you are not trying is currently not supported as we allow one to 
>>>>> update the configuration using the UI. However, we could expose this 
>>>>> functionality as a command line utility in time for your production 
>>>>> deployment of the ESB, if this is urgent for you.
>>>>>
>>>>> asankha
>>>>>
>>>>> stlecho wrote:
>>>>>     
>>>>>         
>>>>>> Indika,
>>>>>>
>>>>>> I'm not using the UI, but I copy the synapse.xml file through an ant
>>>>>> script.
>>>>>> When changing a parameter - for instance transport.mail.Address - and
>>>>>> copying to %WSO2ESB%/webapp/web-inf/classes/conf, the modification is
>>>>>> not
>>>>>> used.
>>>>>>
>>>>>> Regards, Stefan.
>>>>>>
>>>>>> indika kumara-2 wrote:
>>>>>>   
>>>>>>       
>>>>>>           
>>>>>>> Hi
>>>>>>>
>>>>>>> You never want to restart WSO2ESB. Just put synape.xml into 
>>>>>>> configuration section and update it. Even, you update any single 
>>>>>>> component through UI, its new changes always reflect immediately. If
>>>>>>> you 
>>>>>>> want to get update after some period, you can put each component 
>>>>>>> definition in the registry with proper cacheable duration.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Indika
>>>>>>>
>>>>>>> stlecho wrote:
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Is it possible to hot-deploy synapse.xml, i.e. without
>>>>>>>> stopping/starting
>>>>>>>> WSO2ESB ?
>>>>>>>>
>>>>>>>> Regards, Stefan Lecho.
>>>>>>>>   
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> No virus found in this incoming message.
>>>>>>>> Checked by AVG - http://www.avg.com 
>>>>>>>> Version: 8.0.169 / Virus Database: 270.6.21/1673 - Release Date:
>>>>>>>> 9/15/2008 6:49 PM
>>>>>>>>
>>>>>>>>   
>>>>>>>>       
>>>>>>>>           
>>>>>>>>               
>>>>>>> _______________________________________________
>>>>>>> Esb-java-user mailing list
>>>>>>> [email protected]
>>>>>>> http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>>>>>>
>>>>>>>
>>>>>>>     
>>>>>>>         
>>>>>>>             
>>>>>>   
>>>>>>       
>>>>>>           
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Esb-java-user mailing list
>>>>> [email protected]
>>>>> http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>>>>     
>>>>>         
>>>>   
>>>>       
>>> _______________________________________________
>>> Esb-java-user mailing list
>>> [email protected]
>>> http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>>
>>>
>>>     
>>
>>   
> 
> 
> _______________________________________________
> Esb-java-user mailing list
> [email protected]
> http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Hot-deploy-synapse.xml-tp19508660p19560407.html
Sent from the WSO2 ESB Users mailing list archive at Nabble.com.


_______________________________________________
Esb-java-user mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/esb-java-user

Reply via email to