User login

Axis2: How to limit the number of parallel web service calls?

Forums :

Hello,

 

I am wondering if there is a possibility to limit the number of parallel running instances of my web service in axis2?     When I call my web service 10 times quickly one after the other I get 10 instances of my web services working.

Is there a chance to limit this to a max. of 5 at any given time?

Thanks,

Kristof

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Axis2: How to limit the number of parallel web service calls?

hi

you can archive this with wos2 throttling[1] module.

please engage this module to your service and add a service level policy as follows.

<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"

xmlns:throttle="http://www.wso2.org/products/wso2commons/throttle">

<throttle:ThrottleAssertion>

<throttle:MaximumConcurrentAccess>5</throttle:MaximumConcurrentAccess>

</throttle:ThrottleAssertion>

</wsp:Policy>

 

[1]http://dist.wso2.org/maven2/org/wso2/throttle/wso2throttle/2.1-SNAPSHOT/

 

thanks

indika

RE : Axis2: How to limit the number of parallel web service call

Hi Kristof,

Actually what do you mean by parallel running instances, is this kind of a throtelling mechanism that you are talking about?  Like limiting the no of calls for a perticular web service from a perticular domain. If so, there is an throtelling module available in WSO2 WSAS (  http://wso2.org/projects/wsas/java  ) which is powered by axis2 with additional feature of management console and many more. With this module engade to a perticular service you can apply patterns and limit the access as your preference. Incase you wanna check it out.

Thanks

Lahru Sandakith

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.