Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Geeth Munasinghe
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);

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Kasun Gajasinghe
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 ge...@wso2.com wrote:

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Afkham Azeez
Let's introduce a System property called reverseProxyMode if that is true, we don't do any dispatching internally. In an ELB component, let's set this System property. -- Afkham Azeez Sent from my phone On Jul 31, 2013 12:02 PM, Geeth Munasinghe ge...@wso2.com wrote: Cause of this problem is

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Nirmal Fernando
Kasun/Miyuru/Dushan, Can you please fix this code correctly? On Wed, Jul 31, 2013 at 12:02 PM, Geeth Munasinghe ge...@wso2.com wrote: Cause of this problem is following code being executed in class - org.apache.synapse.transport.nhttp.util.RESTUtil, method prepareMessageContext

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Afkham Azeez
Another possible implementation is to say whether internal dispatching or external dispatching needs to be given preference. -- Afkham Azeez Sent from my phone On Jul 31, 2013 12:48 PM, Afkham Azeez az...@wso2.com wrote: Let's introduce a System property called reverseProxyMode if that is

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Kasun Indrasiri
On Wed, Jul 31, 2013 at 12:48 PM, Afkham Azeez az...@wso2.com wrote: Let's introduce a System property called reverseProxyMode if that is true, we don't do any dispatching internally. In an ELB component, let's set this System property. +1 We have used a similar approach when handling MT

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-31 Thread Nirmal Fernando
So, Azeez, this won't work in the case of a LB endpoint of ESB, right? On Wed, Jul 31, 2013 at 12:48 PM, Afkham Azeez az...@wso2.com wrote: Let's introduce a System property called reverseProxyMode if that is true, we don't do any dispatching internally. In an ELB component, let's set this

[Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-29 Thread Geeth Munasinghe
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

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-29 Thread Afkham Azeez
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 ge...@wso2.com wrote: ELB packs org.wso2.carbon.core.services.jar, which has exposed

Re: [Dev] ELB - Exposing Admin services (AuthenticationAdmin)

2013-07-29 Thread Nirmal Fernando
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 az...@wso2.com wrote: This is why all dispatchers were removed from the ELB. Has somebody added those back? -- Afkham