Hi,

We had a long discussion about this sometime back. We have already solved
this problem by introducing the description tag into the Synapse
configuration language. In the next major release the relevant UI changes
will also be included in the ESB.

On Sun, Jan 23, 2011 at 12:23 PM, Tharindu Mathew <[email protected]> wrote:

> Maybe as a workaround, we can detect when comments are inserted (when the
> config is saved through the UI) and ask the user to not to insert comments
> and use the description tag. That way, the risk of losing parts of the
> synapse config can be avoided.


Axiom doesn't let access to comments in a convenient manner to resolve this.
That's why we introduced the description tags. If you want to just disable
parts of the configuration, that's a different problem. I think that is one
of the items in the ESB road map (going in the lines of mediation debugger).
Users should be able to just pick one or more mediators and disable them.

Thanks,
Hiranya


>
> WDYT?
>
>
> On Sun, Jan 23, 2011 at 12:14 PM, Kasun Indrasiri <[email protected]> wrote:
>
>>
>>
>> On Sun, Jan 23, 2011 at 12:00 PM, Senaka Fernando <[email protected]>wrote:
>>
>>>
>>>
>>> On Sun, Jan 23, 2011 at 11:15 AM, Tharindu Mathew <[email protected]>wrote:
>>>
>>>> I commented out some lines from a synapse config and saved it. This
>>>> resulted in those lines being wiped out from the config!!
>>>>
>>>
>>>> Is this a known issue?
>>>>
>>>
>>> I think yes. IIRC, you can't have XML-style comments in the synapse.xml.
>>> But, given your explanation, IMHO, its a fairly-big usability issue. IMO,
>>> commenting out and testing is a common practice that most developers are
>>> used to.
>>>
>> IMO, the ideal solution is to preserve comments as this is a very valid
>> use case. However, AFAIR there were some complexity involved in doing that.
>>
>> Please refer the thread about this on synapse-dev[1].
>>
>> [1] http://www.mail-archive.com/[email protected]/msg06544.html
>>
>>
>>> Its worth discussing this on synapse AT apache.org.
>>>
>>> Thanks,
>>> Senaka.
>>>
>>>> --
>>>> Regards,
>>>>
>>>> Tharindu
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> [email protected]
>>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Senaka Fernando*
>>> Product Manager - WSO2 Governance Registry;
>>> Associate Technical Lead; WSO2, Inc.; http://wso2.com*
>>> Member; Apache Software Foundation; http://apache.org
>>>
>>> E-mail: senaka AT wso2.com
>>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>>> Linked-In: http://www.linkedin.com/in/senakafernando
>>>
>>> *Lean . Enterprise . Middleware
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Kasun Indrasiri
>> Senior Software Engineer
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> cell: +94 71 536 4128
>> Blog : http://kasunpanorama.blogspot.com/
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Regards,
>
> Tharindu Mathew
>
> Software Engineer,
> WSO2 Inc.,
> http://wso2.com
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Hiranya Jayathilaka
Senior Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 633 3491
Blog: http://techfeast-hiranya.blogspot.com
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to