Thanks Isuru and Rajjaz, got it solved as per your suggestions.
On Thu, Oct 8, 2015 at 11:00 PM, Rajjaz Mohammed <[email protected]> wrote: > Hi, > AFAIK your setting inbound as protocol so it may not take class name. so > try without set the protocol name. check when we set inbound protocol[1] > its class name not display and when we set custom inbound[2] there is no > protocol name > > [1] https://docs.wso2.com/display/ESB490/File+Inbound+Protocol > [2] https://docs.wso2.com/display/ESB490/Custom+Inbound+Endpoint > > On Thu, Oct 8, 2015 at 7:57 PM, Isuru Ranawaka <[email protected]> wrote: > >> Hi Susinda , >> >> Remove protocol attribute.If you define custom class it is not needed to >> define protocol. >> >> thanks >> >> On Thu, Oct 8, 2015 at 8:57 AM, Susinda Perera <[email protected]> wrote: >> >>> I'm using following code segment to create a InboundEndpoint and >>> serialize it and get the omelement. >>> >>> InboundEndpoint inboundEndpoint1 = new InboundEndpoint(); >>> inboundEndpoint1.setName("susinda"); >>> inboundEndpoint1.setSuspend(false); >>> *inboundEndpoint1.setClassImpl("org.test.MyClass");* >>> inboundEndpoint1.setProtocol("custom"); >>> inboundEndpoint1.addParameter("inbound.behavior", "behaviourValue"); >>> OMElement inboundEndpointOmElement1 = >>> InboundEndpointSerializer.serializeInboundEndpoint(inboundEndpoint1); >>> >>> The resulted(serialized) OMElement looks like follows, Here *class* >>> attribute is not set >>> >>> <inboundEndpoint xmlns="http://ws.apache.org/ns/synapse" name="susinda" >>> protocol="custom" suspend="false"> >>> <parameters> >>> <parameter name="inbound.behavior">behaviourValue</parameter> >>> </parameters> >>> </inboundEndpoint> >>> >>> Correct config should contain class attribute, What is wrong here? am i >>> doing something wrong or is this a bug, appreciate your help on this. >>> >>> Thanks >>> Susinda >>> >>> >>> >>> >>> >>> -- >>> *Susinda Perera* >>> Software Engineer >>> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL) >>> Mobile:(+94)716049075 >>> Blog: susinda.blogspot.com >>> WSO2 Inc. http://wso2.com/ >>> Tel : 94 11 214 5345 Fax :94 11 2145300 >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Best Regards >> Isuru Ranawaka >> M: +94714629880 >> Blog : http://isurur.blogspot.com/ >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Thank you > Best Regards > > *Rajjaz HM* > Associate Software Engineer > WSO2 Inc. <http://wso2.com/> > lean | enterprise | middleware > Mobile | +94752833834 > Email | [email protected] > LinkedIn | Blogger | WSO2 Profile > <http://wso2.com/about/team/mohammer_rajjaz/> > -- *Susinda Perera* Software Engineer B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL) Mobile:(+94)716049075 Blog: susinda.blogspot.com WSO2 Inc. http://wso2.com/ Tel : 94 11 214 5345 Fax :94 11 2145300
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
