I
agree.. same socket bi-directionality is exotic and does not have to be in the
public interface.
Currently, it's not very nice how the proxy going back client gets
setup. I won't go into details about the current way I do it (it
sucks).
Here's the route I
hope I can change too soon:
1) client sends a proxy object down an invocation to
the server..
2) server invoker sets either (a) an
Invocation attribute or (b) and ThreadLocal to identify the socket the
invocation came over.
3) When the proxy object is de-serialized, he looks up
the object in (2) to setup the callback channel to go through the original
socket.
But for this to work in the (a) case the
proxy object would need to be able to access the Invocation object during
deserization.
And for it to work in the (b) case the proxy object has
to be deserialized while in the context of the thread the invocation came
in.
I don't think I'll be able to do this the way
invocations are done right now. You think this is a bad route?
Regards,
Hiram
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Burke Sent: Sunday, November 17, 2002 11:16 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-dev] new PooledInvoker: speeds up invocations
|
- RE: [JBoss-dev] new Pooled... Sacha Labourey
- RE: [JBoss-dev] new Po... Hiram Chirino
- RE: [JBoss-dev] new Pooled... Hiram Chirino
- RE: [JBoss-dev] new Po... Bill Burke
- RE: [JBoss-dev] n... Hiram Chirino
- Re: [JBoss-dev] new PooledInvo... Dain Sundstrom
- RE: [JBoss-dev] new Pooled... Hiram Chirino
- Re: [JBoss-dev] new Po... Victor Langelo
- Re: [JBoss-dev] n... Scott M Stark
- RE: [JBoss-de... Bill Burke
- RE: [JBoss-de... Hiram Chirino
- RE: [JBoss-de... Bill Burke
- RE: [JBoss-de... Hiram Chirino
- Re: [JBoss-de... Emerson Cargnin - SICREDI Serviços
- Re: [JBoss-de... Dain
- RE: [JBoss-de... Laurent Etiemble
- Re: [JBoss-dev] new Po... Dain Sundstrom
- Re: [JBoss-dev] new PooledInvoker:... Lennart Petersson
- Re: [JBoss-dev] new PooledInvoker: spee... Dan A. Dickey
- RE: [JBoss-dev] new PooledInvoker:... Bill Burke
- RE: [JBoss-dev] new PooledInvo... Adam Heath