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 <[email protected]> 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 <[email protected]> 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* >> >> <class name="com.wso2.TestClass"> >> <property name="test" expression="get-property('test')"/> >> </class> >> >> 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 <http://lnkd.in/KUum6D>* >> twitter: https://twitter.com/godwinamila >> > > > > -- > *Isuru Udana* > Technical Lead > WSO2 Inc.; http://wso2.com > email: [email protected] 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 <http://lnkd.in/KUum6D>* twitter: https://twitter.com/godwinamila
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
