Hi Akila, On Fri, Apr 24, 2015 at 11:55 AM, Akila Ravihansa Perera <[email protected] > wrote:
> Hi, > > I'm trying to configure the _resource_mismatch_handler_ in ESB. I noticed > that it gets triggered only when there is a mis-match for a resource in an > already existing API context. It doesn't get triggered if a request is sent > for a non-existing API context. > > Is this the expected behavior? > Yes. Synapse identify the api using the api context (not from API name). So if the context is not matched, then it means there is no api to handle that request and it is getting dispatched to the main sequence. > Is there any way to configure the mis-match handler for a non-existing API > context? > No. From the name itself gives the idea of this sequence is for mismatching resources. However you many configure the main sequence logic to handle these type of requests. > > Thanks. > > -- > Akila Ravihansa Perera > Software Engineer, WSO2 > > Blog: http://ravihansa3000.blogspot.com > -- *Isuru Udana* Associate Technical Lead WSO2 Inc.; http://wso2.com email: [email protected] cell: +94 77 3791887 blog: http://mytecheye.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
