Re: [Dev] Pass dynamic values to class mediator

2016-08-30 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

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

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

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,

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 >

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

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

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')

[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