Have a look at Johan's contribution on multiplexing of services https://issues.apache.org/jira/browse/THRIFT-66 It hasn't been committed yet, but his patches are in Java and attached to the ticket. (Judging from your code snippet, I assume it's Java you are using)
On Wed, Aug 27, 2008 at 4:13 PM, Michael Jenny <[EMAIL PROTECTED]>wrote: > Hi all, > I wonder if it is possible to have a thrift server waiting for requests > from > different services (e.g. in the sense of multiple thrift idl service > definition). > To make it more obvious: Is it possible to do something that is similar to > this: > > CalculatorHandler handler = new CalculatorHandler(); > Calculator.Processor calcultorProcessor = new > Calculator.Processor(handler); > > CalendarHandler handler = new CalendarHandler(); > Calendar.Processor calendarProcessor = new Calendar.Processor(handler); > > and assign them both to a single thrift server instance? > > Thanks for any hints. > > Regards, Michael. >
