Yes, this is wrong. Seems Dispatchers have been manually invoked, and these
dispatchers have set the axis2service and axis2operation in the message
context. So, ELB invokes those instead of passing to back-end service!


On Wed, Jul 31, 2013 at 12:02 PM, Geeth Munasinghe <[email protected]> wrote:

> Cause of this problem is following code being executed in  class -
> org.apache.synapse.transport.nhttp.util.RESTUtil, method
> prepareMessageContext
>
> RequestURIBasedDispatcher requestDispatcher = new
> RequestURIBasedDispatcher();
> AxisService axisService = requestDispatcher.findService(msgContext);
>
> This code returns a null axisService if service is not available in LB,
> but returns AxisService for all the services included in LB.
>
> How to stop this and give a proper patch for the customer ?
>
> Thanks
>
> *G. K. S. Munasinghe
> *
> *Software Engineer,*
> *WSO2, Inc. http://wso2.com *
> *lean.enterprise.middleware.*
> *
> *
> email: [email protected]
> phone:(+94) 777911226
>
>
> On Mon, Jul 29, 2013 at 10:04 PM, Nirmal Fernando <[email protected]> wrote:
>
>> Hi Azeez,
>>
>> There are no dispatchers in axis2 xml of ELB:
>>
>> <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/>
>>
>>
>> On Mon, Jul 29, 2013 at 9:22 PM, Afkham Azeez <[email protected]> wrote:
>>
>>> This is why all dispatchers were removed from the ELB. Has somebody
>>> added those back?
>>>
>>> --
>>> Afkham Azeez
>>> Sent from my phone
>>> On Jul 29, 2013 7:40 PM, "Geeth Munasinghe" <[email protected]> wrote:
>>>
>>>> ELB packs org.wso2.carbon.core.services.jar, which has exposed
>>>> org.wso2.carbon.core.services.authentication.AuthenticationAdmin as a web
>>>> services. When IS is load balanced through ELB and a client tries to access
>>>> the AuthenticationAdmin of IS, ELB invoke it's own AuthenticationAdmin web
>>>> service instead of passing this to IS.
>>>>
>>>>
>>>> What would would be the possible solutins to avoid this? .
>>>>
>>>>
>>>> Thanks
>>>>
>>>> *G. K. S. Munasinghe
>>>> *
>>>> *Software Engineer,*
>>>> *WSO2, Inc. http://wso2.com *
>>>> *lean.enterprise.middleware.*
>>>> *
>>>> *
>>>> email: [email protected]
>>>> phone:(+94) 777911226
>>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com


 ,
*email: **kasung AT spamfree wso2.com


** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe


*
*
*blog: **http://kasunbg.org* <http://kasunbg.org>


*
twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>


*
*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to