[Dev] [ESB] Retrieving the API name within a handler
Hi, I have a handler applied for several APIs in ESB 4.8.1. Is it possible to do $subject? If not, any workaround to know which API has been invoked, inside the handler? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] Retrieving the API name within a handler
Hi Supun, You should be able to get the API name using the property 'SYNAPSE_REST_API' in the synapse message context. On Tue, Sep 8, 2015 at 8:26 PM, Supun Sethunga wrote: > Hi, > > I have a handler applied for several APIs in ESB 4.8.1. Is it possible to > do $subject? If not, any workaround to know which API has been invoked, > inside the handler? > > Thanks, > Supun > > -- > *Supun Sethunga* > Software Engineer > WSO2, Inc. > http://wso2.com/ > lean | enterprise | middleware > Mobile : +94 716546324 > -- *Isuru Udana* Associate Technical Lead WSO2 Inc.; http://wso2.com email: isu...@wso2.com cell: +94 77 3791887 blog: http://mytecheye.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] Retrieving the API name within a handler
Thanks Isuru! That works. :) On Tue, Sep 8, 2015 at 12:31 PM, Isuru Udana wrote: > Hi Supun, > > You should be able to get the API name using the property ' > SYNAPSE_REST_API' in the synapse message context. > > > > On Tue, Sep 8, 2015 at 8:26 PM, Supun Sethunga wrote: > >> Hi, >> >> I have a handler applied for several APIs in ESB 4.8.1. Is it possible to >> do $subject? If not, any workaround to know which API has been invoked, >> inside the handler? >> >> Thanks, >> Supun >> >> -- >> *Supun Sethunga* >> Software Engineer >> WSO2, Inc. >> http://wso2.com/ >> lean | enterprise | middleware >> Mobile : +94 716546324 >> > > > > -- > *Isuru Udana* > Associate Technical Lead > WSO2 Inc.; http://wso2.com > email: isu...@wso2.com cell: +94 77 3791887 > blog: http://mytecheye.blogspot.com/ > -- *Supun Sethunga* Software Engineer WSO2, Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev