Re: Throttle @Asynchronous calls

2016-09-22 Thread cocorossello
Thanks Romain



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Throttle-Asynchronous-calls-tp4680188p4680190.html
Sent from the TomEE Users mailing list archive at Nabble.com.


Re: Throttle @Asynchronous calls

2016-09-22 Thread Romain Manni-Bucau
Hi

not openejb but did it for deltaspike:
http://deltaspike.apache.org/documentation/core.html#AsynchronousOperations


Romain Manni-Bucau
@rmannibucau  |  Blog
 | Old Wordpress Blog
 | Github  |
LinkedIn  | Tomitriber
 | JavaEE Factory


2016-09-22 11:06 GMT+02:00 cocorossello :

> I have an application that calls multiple external web services and each
> one
> of them has specific limits, so I would like to throttle concurrent calls
> based on a just plain number (at least for now).
>
> I was about to implement a custom interceptor for this, something like:
>
>
> @Throttle(max=5)
> @Asynchronous
> public void doSmthg(){
> }
>
> but I was wondering if openEJB already implements something similar...
> (since we can define multiple stateless/stateful containers)
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Throttle-Asynchronous-calls-tp4680188.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>