Hi, That worked. Thanks Maninda.
On Tue, Feb 25, 2014 at 6:47 AM, Maninda Edirisooriya <mani...@wso2.com>wrote: > Hi Shani, > > Please try changing the type of property mediator, RESPONSE_TIME, from > Long to String. As I remember BAM Mediator assumes all the properties as > String and convert to the specified type. > > > *Maninda Edirisooriya* > Software Engineer > > *WSO2, Inc. *lean.enterprise.middleware. > > *Blog* : http://maninda.blogspot.com/ > *Phone* : +94 777603226 > > > On Tue, Feb 25, 2014 at 6:54 PM, Shani Ranasinghe <sh...@wso2.com> wrote: > >> Hi, >> >> Please find the synapse xml attached. >> >> >> On Tue, Feb 25, 2014 at 4:56 AM, Maninda Edirisooriya >> <mani...@wso2.com>wrote: >> >>> Hi Shani, >>> >>> Can you send the sequence XML so that I can see. >>> >>> >>> * Maninda Edirisooriya* >>> Software Engineer >>> >>> *WSO2, Inc.*lean.enterprise.middleware. >>> >>> *Blog* : http://maninda.blogspot.com/ >>> *Phone* : +94 777603226 >>> >>> >>> On Tue, Feb 25, 2014 at 5:05 PM, Shani Ranasinghe <sh...@wso2.com>wrote: >>> >>>> Hi, >>>> >>>> Just to add to it, the type of TIME_1, TIME_2 and RESPONSE_TIME is Long. >>>> >>>> >>>> On Tue, Feb 25, 2014 at 4:25 AM, Shani Ranasinghe <sh...@wso2.com>wrote: >>>> >>>>> >>>>> Hi, >>>>> >>>>> I am trying to add a BAM mediator to ESB and publish data to BAM. I >>>>> have a in sequence which has a property defined as "TIME1".I have an out >>>>> sequence which has a property defined as "Time 2" >>>>> in the out sequence I also have a script mediator, which takes there >>>>> two times and finds the difference and adds the result as a new property >>>>> to >>>>> the message context as response time >>>>> in the out sequence the BAM mediator is available. >>>>> >>>>> so when the request is sent, there is a event in the EVENT_KS for the >>>>> event stream, but the payload_RESPONSE_TIME is 0. (in the stream i set a >>>>> stream property as RESPONSE_TIME and the value as a expression >>>>> get-property('RESPONSE_TIME')) >>>>> >>>>> Any idea as to what I could be doing wrong? >>>>> if I print the value in the script mediator, it shows the value.I am >>>>> using, ESB 4.8.1 and BAM 2.4.0. >>>>> >>>>> My attempt is to get statistics to be visualized of ESB REST API's. >>>>> Started off by trying on response time. >>>>> -- >>>>> Thanks and Regards >>>>> *, Shani Ranasinghe* >>>>> Software Engineer >>>>> WSO2 Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> mobile: +94 77 2273555 >>>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab >>>>> >>>> >>>> >>>> >>>> -- >>>> Thanks and Regards >>>> *,Shani Ranasinghe* >>>> Software Engineer >>>> WSO2 Inc.; http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> mobile: +94 77 2273555 >>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab >>>> >>> >>> >> >> >> -- >> Thanks and Regards >> *,Shani Ranasinghe* >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> mobile: +94 77 2273555 >> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab >> > > -- Thanks and Regards *,Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev