Re: [Dev] What is ESB mediator serializer for?

2014-11-04 Thread Dilan Udara Ariyaratne
Hi Lahiru, AFAIK, serializeSpecificMediator() is the method that gets called when we are reading the relevant configuration xml for a specific mediator from the esb configuration file and input that to the mediate() function of the mediator to do the corresponding processing. Cheers. *Dilan U.

Re: [Dev] What is ESB mediator serializer for?

2014-11-04 Thread Lahiru Chandima
Hi Dilan, Isn't it createSpecificMediator() that is called to create a mediator from configuration file? I searched in the synapse source for usages of createSpecificMediator() and found that serializeSpecificMediator() is used in deployers mostly for restoring the XML in error conditions.

[Dev] What is ESB mediator serializer for?

2014-11-03 Thread Lahiru Chandima
Hi All, I am writing a new ESB mediator and I cannot figure out the need of a mediator serializer (extension of AbstractMediatorSerializer) for a mediator. Also, in the new mediator I created, if I add a breakpoint in serializeSpecificMediator() method in my mediator serializer and debugged, the

Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Waruna Perera
Hi Lahiru, can you check whether your bundle got activated vi Osgi console? Thanks On Tue, Nov 4, 2014 at 11:34 AM, Lahiru Chandima lahi...@wso2.com wrote: Hi All, I am writing a new ESB mediator and I cannot figure out the need of a mediator serializer (extension of

Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Isuru Ranawaka
Hi Lahiru, Mediator serializer is for write mediator configuration object to XML file which is used when saving configuration from UI to file system. Check by saving your configuration from UI. Thanks isuruR On Tue, Nov 4, 2014 at 11:47 AM, Waruna Perera waru...@wso2.com wrote: Hi Lahiru,

Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Lahiru Chandima
Hi Waruna, My OSGi bundle is active. mediate() method of the mediator gets called without a problem. The problem is that serializeSpecificMediator() doesn't get called. Hi Isuru, Isn't it org.wso2.carbon.mediator.service.ui.AbstractMediator.serialize() method (which needs to be implemented in

Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Lahiru Chandima
Hi Isuru, Actually the blog post you provided is the one that I am already referring to :). It specifies to create a serializer but doesn't mention what is the need of a serializer. Thanks. On Tue, Nov 4, 2014 at 12:18 PM, Isuru Ranawaka isu...@wso2.com wrote: Hi , Hope following links help

Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Maninda Edirisooriya
Hi Lahiru, As earlier said by Isuru, it is used to convert the mediator UI entered configuration to generate the mediator XML as I remember. And you may find another class to generate the UI from this XML back which does the reverse of the serializer. These two classes will be called when you

Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Lahiru Chandima
Hi Maninda, I thought the conversion of the mediator to xml and vice versa is done by the mediator class in the mediator configuration UI bundle. It has serialize() method to convert mediator to XML and build() method to build a mediator from XML. Anyway, I will check whether