Re: [Architecture] Type-aware mediators for ESB

2014-05-22 Thread Kasun Indrasiri
In addition, all the connectors that are having interfaces other than XML needs to be modified so that connector accepts the same message type(i.e. json) as the backend API. On Wed, May 21, 2014 at 6:17 PM, Jeewantha Dharmaparakrama < jeewan...@wso2.com> wrote: > Hi All, > > We should be able to

Re: [Architecture] Type-aware mediators for ESB

2014-05-21 Thread Jeewantha Dharmaparakrama
Hi All, We should be able to add the input/output types into the connector.xml file for all connectors. Since DevS does not instantiate anything for connectors we cant take use of the invoke mediator. For all other type aware mediators DevS can use the getInputType() getOutputType() methods WDYT?.

Re: [Architecture] Type-aware mediators for ESB

2014-05-20 Thread Kasun Indrasiri
Hi Viraj, When generating a connector invoke mediator out of a connector, we can extract the supported data format from the connector and set that as the input and output type of that mediator. The idea is to use single api to extract the input and output type across all mediators. Lets have a rev

Re: [Architecture] Type-aware mediators for ESB

2014-05-20 Thread Viraj Rajaguru
Hi, When we consider putting Data mapper mediator in between two connector operations in Developer Studio, we can use following steps to deduce input and output types for Data mapper mediator without asking user to provide them. 1. Since we are going to include the supported message type or me

Re: [Architecture] Type-aware mediators for ESB

2014-05-20 Thread Kasun Indrasiri
DM between Connector invocations is the prime candidate for the application of this concept. As we are quite certain on what needs to be done from ESB level, we have to work closely with the DevS to get the story right. On Tue, May 20, 2014 at 5:18 PM, Jeewantha Dharmaparakrama < jeewan...@wso2.c

Re: [Architecture] Type-aware mediators for ESB

2014-05-20 Thread Jeewantha Dharmaparakrama
As we discussed we will be adding getInputType() getOutputType() methods in the AbstractMediator which can be overridden by the Type aware mediators. Type aware mediators can be * All connectors * All transformation mediators * Enrich * Property (When xpath, json path is used) etc There are non-t

Re: [Architecture] Type-aware mediators for ESB

2014-05-15 Thread Malaka Silva
Hi, With related to connectors I guess main idea here is to have different connectors in a flow which can integrate with each other. I think recipes will definitely benefit from this. In the case of connectors both input and output will always be same. We can specific this in init method of the c

[Architecture] Type-aware mediators for ESB

2014-05-13 Thread Kasun Indrasiri
Hi, We been working on the initial design of the type-aware mediator concept for ESB. The main objective of this is to have an input and output type for the mediators so that transformation mediators(such as DataMapper mediator) can decide its input and output type dynamically. - One of the commo