Re: [Dev] Pass dynamic values to class mediator

2016-08-29 Thread Iranga Muthuthanthri
On Thu, Jun 2, 2016 at 7:35 PM, Isuru Udana  wrote:

> Hi Godwin,
>
> For now we only have the option I suggested above and yes supporting
> expressions as class mediator parameters is a good improvement we can do in
> a future release.
>

Added as an improvement :https://wso2.org/jira/browse/ESBJAVA-4875

>
> Thanks.
>
> On Thu, Jun 2, 2016 at 7:31 PM, Godwin Shrimal  wrote:
>
>> Hi Kathees/Isuru,
>>
>> I think we can solve the issue using property straightforward. But still
>> there are good use cases which need to pass dynamic values to class
>> mediator may be we can improve in future release. Passing parameter to a
>> class mediator is more readable for developers/users from API perception
>> other than reading a property inside it.
>>
>>
>> Thanks
>> Godwin
>>
>>
>> On Thu, Jun 2, 2016 at 12:54 AM, Kathees Rajendram 
>> wrote:
>>
>>> Hi Godwin/Isuru,
>>>
>>> This may not be a good approach. You can define a static property. In
>>> static property you can dynamically assign dynamic properties and values as
>>> key value pairs with the patterns (dynamicProperty1: value1,
>>> dynamicProperty2: value2, etc.).
>>>
>>> dynamicProperty1: value1, dynamicProperty2:
>>> value2
>>>
>>> In the class mediator, you can read the static property and you need to
>>> write a login to get each values of the dynamic properties.
>>> Thanks,
>>> Kathees
>>>
>>> On Thu, Jun 2, 2016 at 10:46 AM, Isuru Udana  wrote:
>>>
 Hi Rajjaz,

 Godwin is asking about class mediators not connectors.



 On Thu, Jun 2, 2016 at 10:38 AM, Rajjaz Mohammed 
 wrote:

> Hi Godwin,
> You can receive dynamic values in class level without set in the
> property configuration.
>
> for example:
> 
> raj
> com.sun.enterprise.naming.
> SerialInitContextFactory
> localhost org.omg.CORBA.ORBInitialHost>
> 3700 omg.CORBA.ORBInitialPort>
> 
>
> these values are dynamic values so we can receive these values in code
> level without set property[1].
>
> [1] https://github.com/wso2-extensions/esb-connector-ejb2.
> 0/blob/master/src/main/java/org/wso2/carbon/custom/
> connector/EJBUtil.java#L131
>
>
>
> On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal 
> wrote:
>
>> Hi Isuru,
>>
>> Thanks for quick response, I'll proceed with by setting property.
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>> On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:
>>
>>> Hi Godwin,
>>>
>>> It is not possible to pass dynamic values using the property
>>> configuration element. It only support static values.
>>>
>>> The only option is to set some property using the property mediator
>>> and within the class mediator code read that property using
>>> synCtx.getProperty('prop_name_here')
>>>
>>> Thanks.
>>>
>>> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal 
>>> wrote:
>>>
 Hi All,

 How can we pass dynamic values to class mediator ?, if we try to do
 as below it give a error *A Class mediator property must specify
 name and value attributes, or a name and a child XML fragment*

 
 
 

 How can we achieve this ?

 Thanks
 Godwin


 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila

>>>
>>>
>>>
>>> --
>>> *Isuru Udana*
>>> Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>>
>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Associate Software Engineer
> Platform Extension Team
> WSO2 Inc. 
> lean | enterprise | middleware
> Mobile | +94752833834|+94777226874
> Email   | raj...@wso2.com
> LinkedIn  | Blogger
>  | WSO2 Profile
> 
>



 --
 *Isuru Udana*
 Technical Lead
 WSO2 Inc.; http://wso2.com
 ema

Re: [Dev] Pass dynamic values to class mediator

2016-06-02 Thread Isuru Udana
Hi Godwin,

For now we only have the option I suggested above and yes supporting
expressions as class mediator parameters is a good improvement we can do in
a future release.

Thanks.

On Thu, Jun 2, 2016 at 7:31 PM, Godwin Shrimal  wrote:

> Hi Kathees/Isuru,
>
> I think we can solve the issue using property straightforward. But still
> there are good use cases which need to pass dynamic values to class
> mediator may be we can improve in future release. Passing parameter to a
> class mediator is more readable for developers/users from API perception
> other than reading a property inside it.
>
>
> Thanks
> Godwin
>
>
> On Thu, Jun 2, 2016 at 12:54 AM, Kathees Rajendram 
> wrote:
>
>> Hi Godwin/Isuru,
>>
>> This may not be a good approach. You can define a static property. In
>> static property you can dynamically assign dynamic properties and values as
>> key value pairs with the patterns (dynamicProperty1: value1,
>> dynamicProperty2: value2, etc.).
>>
>> dynamicProperty1: value1, dynamicProperty2:
>> value2
>>
>> In the class mediator, you can read the static property and you need to
>> write a login to get each values of the dynamic properties.
>> Thanks,
>> Kathees
>>
>> On Thu, Jun 2, 2016 at 10:46 AM, Isuru Udana  wrote:
>>
>>> Hi Rajjaz,
>>>
>>> Godwin is asking about class mediators not connectors.
>>>
>>>
>>>
>>> On Thu, Jun 2, 2016 at 10:38 AM, Rajjaz Mohammed 
>>> wrote:
>>>
 Hi Godwin,
 You can receive dynamic values in class level without set in the
 property configuration.

 for example:
 
 raj
 >>> >com.sun.enterprise.naming.SerialInitContextFactory>>> raj.java.naming.factory.initial>
 localhost>>> raj.org.omg.CORBA.ORBInitialHost>
 3700>>> raj.org.omg.CORBA.ORBInitialPort>
 

 these values are dynamic values so we can receive these values in code
 level without set property[1].

 [1]
 https://github.com/wso2-extensions/esb-connector-ejb2.0/blob/master/src/main/java/org/wso2/carbon/custom/connector/EJBUtil.java#L131



 On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal  wrote:

> Hi Isuru,
>
> Thanks for quick response, I'll proceed with by setting property.
>
>
> Thanks
> Godwin
>
>
>
> On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:
>
>> Hi Godwin,
>>
>> It is not possible to pass dynamic values using the property
>> configuration element. It only support static values.
>>
>> The only option is to set some property using the property mediator
>> and within the class mediator code read that property using
>> synCtx.getProperty('prop_name_here')
>>
>> Thanks.
>>
>> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal 
>> wrote:
>>
>>> Hi All,
>>>
>>> How can we pass dynamic values to class mediator ?, if we try to do
>>> as below it give a error *A Class mediator property must specify
>>> name and value attributes, or a name and a child XML fragment*
>>>
>>> 
>>> 
>>> 
>>>
>>> How can we achieve this ?
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>
>>
>>
>> --
>> *Isuru Udana*
>> Technical Lead
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 Thank you
 Best Regards

 *Rajjaz HM*
 Associate Software Engineer
 Platform Extension Team
 WSO2 Inc. 
 lean | enterprise | middleware
 Mobile | +94752833834|+94777226874
 Email   | raj...@wso2.com
 LinkedIn  | Blogger
  | WSO2 Profile
 

>>>
>>>
>>>
>>> --
>>> *Isuru Udana*
>>> 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
>>>
>>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>>

Re: [Dev] Pass dynamic values to class mediator

2016-06-02 Thread Godwin Shrimal
Hi Kathees/Isuru,

I think we can solve the issue using property straightforward. But still
there are good use cases which need to pass dynamic values to class
mediator may be we can improve in future release. Passing parameter to a
class mediator is more readable for developers/users from API perception
other than reading a property inside it.


Thanks
Godwin


On Thu, Jun 2, 2016 at 12:54 AM, Kathees Rajendram  wrote:

> Hi Godwin/Isuru,
>
> This may not be a good approach. You can define a static property. In
> static property you can dynamically assign dynamic properties and values as
> key value pairs with the patterns (dynamicProperty1: value1,
> dynamicProperty2: value2, etc.).
>
> dynamicProperty1: value1, dynamicProperty2:
> value2
>
> In the class mediator, you can read the static property and you need to
> write a login to get each values of the dynamic properties.
> Thanks,
> Kathees
>
> On Thu, Jun 2, 2016 at 10:46 AM, Isuru Udana  wrote:
>
>> Hi Rajjaz,
>>
>> Godwin is asking about class mediators not connectors.
>>
>>
>>
>> On Thu, Jun 2, 2016 at 10:38 AM, Rajjaz Mohammed  wrote:
>>
>>> Hi Godwin,
>>> You can receive dynamic values in class level without set in the
>>> property configuration.
>>>
>>> for example:
>>> 
>>> raj
>>> >> >com.sun.enterprise.naming.SerialInitContextFactory>> raj.java.naming.factory.initial>
>>> localhost>> raj.org.omg.CORBA.ORBInitialHost>
>>> 3700>> raj.org.omg.CORBA.ORBInitialPort>
>>> 
>>>
>>> these values are dynamic values so we can receive these values in code
>>> level without set property[1].
>>>
>>> [1]
>>> https://github.com/wso2-extensions/esb-connector-ejb2.0/blob/master/src/main/java/org/wso2/carbon/custom/connector/EJBUtil.java#L131
>>>
>>>
>>>
>>> On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal  wrote:
>>>
 Hi Isuru,

 Thanks for quick response, I'll proceed with by setting property.


 Thanks
 Godwin



 On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:

> Hi Godwin,
>
> It is not possible to pass dynamic values using the property
> configuration element. It only support static values.
>
> The only option is to set some property using the property mediator
> and within the class mediator code read that property using
> synCtx.getProperty('prop_name_here')
>
> Thanks.
>
> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal 
> wrote:
>
>> Hi All,
>>
>> How can we pass dynamic values to class mediator ?, if we try to do
>> as below it give a error *A Class mediator property must specify
>> name and value attributes, or a name and a child XML fragment*
>>
>> 
>> 
>> 
>>
>> How can we achieve this ?
>>
>> Thanks
>> Godwin
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>



 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Thank you
>>> Best Regards
>>>
>>> *Rajjaz HM*
>>> Associate Software Engineer
>>> Platform Extension Team
>>> WSO2 Inc. 
>>> lean | enterprise | middleware
>>> Mobile | +94752833834|+94777226874
>>> Email   | raj...@wso2.com
>>> LinkedIn  | Blogger
>>>  | WSO2 Profile
>>> 
>>>
>>
>>
>>
>> --
>> *Isuru Udana*
>> 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
>>
>>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
__

Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Kathees Rajendram
Hi Godwin/Isuru,

This may not be a good approach. You can define a static property. In
static property you can dynamically assign dynamic properties and values as
key value pairs with the patterns (dynamicProperty1: value1,
dynamicProperty2: value2, etc.).

dynamicProperty1: value1, dynamicProperty2:
value2

In the class mediator, you can read the static property and you need to
write a login to get each values of the dynamic properties.
Thanks,
Kathees

On Thu, Jun 2, 2016 at 10:46 AM, Isuru Udana  wrote:

> Hi Rajjaz,
>
> Godwin is asking about class mediators not connectors.
>
>
>
> On Thu, Jun 2, 2016 at 10:38 AM, Rajjaz Mohammed  wrote:
>
>> Hi Godwin,
>> You can receive dynamic values in class level without set in the property
>> configuration.
>>
>> for example:
>> 
>> raj
>> > >com.sun.enterprise.naming.SerialInitContextFactory> raj.java.naming.factory.initial>
>> localhost> raj.org.omg.CORBA.ORBInitialHost>
>> 3700> raj.org.omg.CORBA.ORBInitialPort>
>> 
>>
>> these values are dynamic values so we can receive these values in code
>> level without set property[1].
>>
>> [1]
>> https://github.com/wso2-extensions/esb-connector-ejb2.0/blob/master/src/main/java/org/wso2/carbon/custom/connector/EJBUtil.java#L131
>>
>>
>>
>> On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal  wrote:
>>
>>> Hi Isuru,
>>>
>>> Thanks for quick response, I'll proceed with by setting property.
>>>
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>>
>>> On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:
>>>
 Hi Godwin,

 It is not possible to pass dynamic values using the property
 configuration element. It only support static values.

 The only option is to set some property using the property mediator and
 within the class mediator code read that property using
 synCtx.getProperty('prop_name_here')

 Thanks.

 On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:

> Hi All,
>
> How can we pass dynamic values to class mediator ?, if we try to do as
> below it give a error *A Class mediator property must specify name
> and value attributes, or a name and a child XML fragment*
>
> 
> 
> 
>
> How can we achieve this ?
>
> Thanks
> Godwin
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>



 --
 *Isuru Udana*
 Technical Lead
 WSO2 Inc.; http://wso2.com
 email: isu...@wso2.com cell: +94 77 3791887
 blog: http://mytecheye.blogspot.com/

>>>
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thank you
>> Best Regards
>>
>> *Rajjaz HM*
>> Associate Software Engineer
>> Platform Extension Team
>> WSO2 Inc. 
>> lean | enterprise | middleware
>> Mobile | +94752833834|+94777226874
>> Email   | raj...@wso2.com
>> LinkedIn  | Blogger
>>  | WSO2 Profile
>> 
>>
>
>
>
> --
> *Isuru Udana*
> 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
>
>


-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Isuru Udana
Hi Rajjaz,

Godwin is asking about class mediators not connectors.



On Thu, Jun 2, 2016 at 10:38 AM, Rajjaz Mohammed  wrote:

> Hi Godwin,
> You can receive dynamic values in class level without set in the property
> configuration.
>
> for example:
> 
> raj
>  >com.sun.enterprise.naming.SerialInitContextFactory raj.java.naming.factory.initial>
> localhost raj.org.omg.CORBA.ORBInitialHost>
> 3700 raj.org.omg.CORBA.ORBInitialPort>
> 
>
> these values are dynamic values so we can receive these values in code
> level without set property[1].
>
> [1]
> https://github.com/wso2-extensions/esb-connector-ejb2.0/blob/master/src/main/java/org/wso2/carbon/custom/connector/EJBUtil.java#L131
>
>
>
> On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal  wrote:
>
>> Hi Isuru,
>>
>> Thanks for quick response, I'll proceed with by setting property.
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>> On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:
>>
>>> Hi Godwin,
>>>
>>> It is not possible to pass dynamic values using the property
>>> configuration element. It only support static values.
>>>
>>> The only option is to set some property using the property mediator and
>>> within the class mediator code read that property using
>>> synCtx.getProperty('prop_name_here')
>>>
>>> Thanks.
>>>
>>> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:
>>>
 Hi All,

 How can we pass dynamic values to class mediator ?, if we try to do as
 below it give a error *A Class mediator property must specify name and
 value attributes, or a name and a child XML fragment*

 
 
 

 How can we achieve this ?

 Thanks
 Godwin


 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D *
 twitter: https://twitter.com/godwinamila

>>>
>>>
>>>
>>> --
>>> *Isuru Udana*
>>> Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>>
>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thank you
> Best Regards
>
> *Rajjaz HM*
> Associate Software Engineer
> Platform Extension Team
> WSO2 Inc. 
> lean | enterprise | middleware
> Mobile | +94752833834|+94777226874
> Email   | raj...@wso2.com
> LinkedIn  | Blogger
>  | WSO2 Profile
> 
>



-- 
*Isuru Udana*
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


Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Rajjaz Mohammed
Hi Godwin,
You can receive dynamic values in class level without set in the property
configuration.

for example:

raj
com.sun.enterprise.naming.SerialInitContextFactory
localhost
3700


these values are dynamic values so we can receive these values in code
level without set property[1].

[1]
https://github.com/wso2-extensions/esb-connector-ejb2.0/blob/master/src/main/java/org/wso2/carbon/custom/connector/EJBUtil.java#L131



On Thu, Jun 2, 2016 at 9:09 AM, Godwin Shrimal  wrote:

> Hi Isuru,
>
> Thanks for quick response, I'll proceed with by setting property.
>
>
> Thanks
> Godwin
>
>
>
> On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:
>
>> Hi Godwin,
>>
>> It is not possible to pass dynamic values using the property
>> configuration element. It only support static values.
>>
>> The only option is to set some property using the property mediator and
>> within the class mediator code read that property using
>> synCtx.getProperty('prop_name_here')
>>
>> Thanks.
>>
>> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:
>>
>>> Hi All,
>>>
>>> How can we pass dynamic values to class mediator ?, if we try to do as
>>> below it give a error *A Class mediator property must specify name and
>>> value attributes, or a name and a child XML fragment*
>>>
>>> 
>>> 
>>> 
>>>
>>> How can we achieve this ?
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>>
>>
>>
>>
>> --
>> *Isuru Udana*
>> Technical Lead
>> WSO2 Inc.; http://wso2.com
>> email: isu...@wso2.com cell: +94 77 3791887
>> blog: http://mytecheye.blogspot.com/
>>
>
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
Platform Extension Team
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834|+94777226874
Email   | raj...@wso2.com
LinkedIn  | Blogger
 | WSO2 Profile

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Godwin Shrimal
Hi Isuru,

Thanks for quick response, I'll proceed with by setting property.


Thanks
Godwin



On Wed, Jun 1, 2016 at 10:32 PM, Isuru Udana  wrote:

> Hi Godwin,
>
> It is not possible to pass dynamic values using the property configuration
> element. It only support static values.
>
> The only option is to set some property using the property mediator and
> within the class mediator code read that property using
> synCtx.getProperty('prop_name_here')
>
> Thanks.
>
> On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:
>
>> Hi All,
>>
>> How can we pass dynamic values to class mediator ?, if we try to do as
>> below it give a error *A Class mediator property must specify name and
>> value attributes, or a name and a child XML fragment*
>>
>> 
>> 
>> 
>>
>> How can we achieve this ?
>>
>> Thanks
>> Godwin
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> *Isuru Udana*
> Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887
> blog: http://mytecheye.blogspot.com/
>



-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Pass dynamic values to class mediator

2016-06-01 Thread Isuru Udana
Hi Godwin,

It is not possible to pass dynamic values using the property configuration
element. It only support static values.

The only option is to set some property using the property mediator and
within the class mediator code read that property using
synCtx.getProperty('prop_name_here')

Thanks.

On Thu, Jun 2, 2016 at 8:54 AM, Godwin Shrimal  wrote:

> Hi All,
>
> How can we pass dynamic values to class mediator ?, if we try to do as
> below it give a error *A Class mediator property must specify name and
> value attributes, or a name and a child XML fragment*
>
> 
> 
> 
>
> How can we achieve this ?
>
> Thanks
> Godwin
>
>
> --
> *Godwin Amila Shrimal*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *http://lnkd.in/KUum6D *
> twitter: https://twitter.com/godwinamila
>



-- 
*Isuru Udana*
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


[Dev] Pass dynamic values to class mediator

2016-06-01 Thread Godwin Shrimal
Hi All,

How can we pass dynamic values to class mediator ?, if we try to do as
below it give a error *A Class mediator property must specify name and
value attributes, or a name and a child XML fragment*





How can we achieve this ?

Thanks
Godwin


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev