[omniORB] Thread per method

Rob van der Leek r.vd.leek@fokkerspace.nl
Tue, 16 Jan 2001 13:13:39 +0100


Hi list,

Roughly, this is my situation:

1. Client1 -- push(event) --> EventChannel --- push(event) --> Server

2. Server incarnates an object factory, the server's push handler
creates a new object and calls some methods on that object. The method
invocations take some time to complete.

3. Client2 -- push(event) --> EventChannel --- push(event) --> Server

4. Now Client2 has to wait for the push handler to return (since the ORB
controlled thread policy in OmniORB is implemented as thread-per-object,
and there's only one server object).

What is the best (portable) approach to create new objects in the object
factory as new threads and keep the push event handler listen for new
clients?
Any comments on my design is also very welcome.

TIA, rob