Re: [Dev] Adding an Endpoint Property as an expression

2015-07-07 Thread Kasun Indrasiri
I don't recall the exact use case for using endpoint level properties? Is
that related to LB/FO endpoints? IMO, if that can be done at mediation
level it self, we should get rid of this kind of usage of properties.

On Tue, Jul 7, 2015 at 12:48 PM, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi ESB Team,

 Currently in the ESB Management console UI, it is not supported to add a
 property to an Endpoint as an expression. But it seems it is a valid
 requirement as in [1].

 Is there any specific reason for allowing to add properties only as
 Literals but not as expressions?

 [1]
 https://github.com/wso2/wso2-synapse/blob/master/modules/core/src/main/java/org/apache/synapse/config/xml/MediatorPropertySerializer.java

 Thanks,
 Sohani
 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine




-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Adding an Endpoint Property as an expression

2015-07-07 Thread Isuru Udana
Hi Kasun,

On Tue, Jul 7, 2015 at 1:04 AM, Kasun Indrasiri ka...@wso2.com wrote:


 I don't recall the exact use case for using endpoint level properties? Is
 that related to LB/FO endpoints?

There are two use cases I can recall.
1. Identify the last endpoint the message is sent in FO/LB endpoint.
2. Allow setting some property specific to an environment from dynamic
endpoints.

 IMO, if that can be done at mediation level it self, we should get rid of
 this kind of usage of properties.

 On Tue, Jul 7, 2015 at 12:48 PM, Sohani Weerasinghe soh...@wso2.com
 wrote:

 Hi ESB Team,

 Currently in the ESB Management console UI, it is not supported to add a
 property to an Endpoint as an expression. But it seems it is a valid
 requirement as in [1].

 Is there any specific reason for allowing to add properties only as
 Literals but not as expressions?

 [1]
 https://github.com/wso2/wso2-synapse/blob/master/modules/core/src/main/java/org/apache/synapse/config/xml/MediatorPropertySerializer.java

 Thanks,
 Sohani
 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/




-- 
*Isuru Udana*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev