OK, I did it this way..

Process A

TTransport trans = new TSocket("B", port);
trans.open();

I created my own class extending TServerTransport which takes a
TTransport in its constructor
listen() does nothing
close() and interrupt() close the transport
but acceptImpl() returns the transport only once, otherwise null

Start that server in the usual way.

Process B

Using a standard java.net.ServerSocket accept the incoming connection
and construct a TSocket using that.
The protocol and then the Client can be constructed as normal.

James

On 11 January 2012 13:44, Anner van Hardenbroek <[email protected]> wrote:
> Hi,
>
> Maybe by doing some handshake service in process B where process A asks to 
> connect process B on a given port. But is not easy and it will a custom thing.
>
> Bye,
> Anner
>
> On 11 jan. 2012, at 13:09, James Swift <[email protected]> wrote:
>
>> Hi,
>>
>> Given process A and process B but socket connections can only be
>> opened from A to B is there some way to make a Thrift service on A
>> available to B?
>>
>> Perhaps it is possible with Java at least?
>>
>> thanks,
>> James

Reply via email to