Thanks Eoghan, I think thats what I was looking for!

On 7/3/07, Glynn, Eoghan <[EMAIL PROTECTED]> wrote:



Well the Bus AutomaticWorkQueue can serve as a shared Executor.

This is retreived via something like:

    Executor workQueue =
bus.getExtentsion(WorkQueueManager.class).getAutomaticQueue();

As it happens, the auto workqueue is the fallback used by WS-A when an
Executor isn't explicitly set on the target service.

BTW the AutomaticWorkQueueImpl is simply a sub-class of
java.util.concurrent.ThreadPoolExecutor with a little extra logic around
high & low water marks.

Cheers,
Eoghan

> -----Original Message-----
> From: Dan Diephouse [mailto:[EMAIL PROTECTED]
> Sent: 03 July 2007 03:27
> To: [email protected]
> Subject: Default Executor?
>
> I was wondering today... should there be a default Executor
> which we can set globally on the bus? I know that in the
> LocalTransport it'd be nice to have somewhere to schedule the
> Thread that is created. I know there are probably several
> other pieces of code that could benefit as well. Do we have
> anything like this already that I'm missing?
>
> - Dan
>
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
>

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland




--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to