On 7/12/12 6:57 PM, Greg Wilkins wrote:
> ... and some other threading issue to consider:
>
> What kind of thread is going to do the callback? If running in an EE
> container, will the thread be anointed as a container thread with the
> ability to propagate identity in calls to EE beans etc. I assume yes?
Yes I would think that makes most sense. I'll make a note to include
that in the spec document when it exists.
> On the write side, I expect that we will eventually have some kind of
> callback for completion or canWriteMore - will those callbacks always
> be a different thread to the one that call the write/send or can it be
> the same thread. If it is the same, how do we prevent stacks growing
> forever if the callback then does another write/send?
It sounds like they will need to be on different threads. Indeed I have
included api for send completion in the v3 API.
>
--
<http://www.oracle.com> *Danny Coward *
Java EE
Oracle Corporation