Hi Brad,
On 6/20/07, Brad Harvey <[EMAIL PROTECTED]> wrote:
Hi there,
What you can do is put messages into a queue in your IO handler and read
them out in your client class. This is a bit of a pain, so I had a go at
a synchronous API that provides a closer client side programming model
to what you're wanting to use - see the patch on
https://issues.apache.org/jira/browse/DIRMINA-375.
You could add the new classes in the patch into your own project
(probably with a different package name so you don't get confused with
real MINA classes) as no changes to existing MINA code are required.
Note that in many cases implementing your processing logic in the IO
Handler directly is better, but the synchronous send/receive approach is
often easier for the simple request/response scenario you describe.
Thank you for posting the patch and examples. I didn't have time to
review it deeply so far unfortunately. It looks great looking from
the examples you provided though. Please stay tuned; I will get back
to you definitely.
Thanks,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6