This content has been marked as final.
Show 3 replies
-
1. Re: concurrency using MBean or POJO handler
tom.elrod Jan 6, 2005 1:13 PM (in response to mazz)There is only one handler instance per Connector. Remoting could (and probably would) make calls on the handler concurrently. It is up to the handler implementation to be thread safe. I don't want to impose single thread model on handlers. Same goes for MBean handlers.
-
2. Re: concurrency using MBean or POJO handler
mazz Jan 6, 2005 2:13 PM (in response to mazz)That should be documented somewhere - probably in the javadocs for the ServerInvocationHandler interface. I was under the assumption that a handler object was created for each request and hence did not need to be thread-safe. Perhaps say something like
each server invocation handler is instantiated and cached within the connector to which it belongs. Multiple requests may get dispatched to the invocation handler's invoke call; therefore, each server invocation handler implementation must ensure thread safety.
-
3. Re: concurrency using MBean or POJO handler
tom.elrod Jan 6, 2005 2:53 PM (in response to mazz)Have added it to wiki and javadocs.