[ 
https://issues.apache.org/jira/browse/THRIFT-1163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030071#comment-13030071
 ] 

Dragan Okiljevic commented on THRIFT-1163:
------------------------------------------

You would need to launh two instances of thrift server from your program, each 
instance for one service and these two servers would need to listen to 
different ports. (Use fork(), thrift thread implementation or something else to 
launch servers at a same time).

There is also another solution available as a patch: a single server that 
multiplexes services. Take a look at THRIFT-66 and THRIFT-563 for multiplexing 
services.

> How can i use multi service in one program?
> -------------------------------------------
>
>                 Key: THRIFT-1163
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1163
>             Project: Thrift
>          Issue Type: Question
>          Components: C++ - Library
>    Affects Versions: 0.6.1
>            Reporter: qiutao
>            Assignee: Jake Farrell
>              Labels: features
>             Fix For: 0.6.1
>
>
> For example,i have two service like this:
> service FirstService
> {
>       string hello()
> }
> service SecondService
> {
>       string hello()
> }
> the generated code have two skeleton server file,how can i use them in one 
> program?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to