Hi List,


On 28 March 2016 at 16:51, Jagannath Naidu <
jagannath.na...@fosteringlinux.com> wrote:

> CORRECTION
>
> On 28 March 2016 at 16:24, Jagannath Naidu <
> jagannath.na...@fosteringlinux.com> wrote:
>
>> Hi List,
>>
>> I am again stuck in a situation. :-D
>>
>> ENVIRONMENT
>>
>> I am using camel 2.15.x and can use this one only
>>
>> we have a server which works as follows
>> 1. This server will multiple requests
>>
> 1. This server can handle multiple requests
>
>> 2. It will not respond in same tcp session ( means, it will create a new
>> connection every time )
>> 3. It listens on socket 10.1.1.10:1234
>> 4. Result (Response) messages from this server are asynchronous ( Means,
>> it is possible that it will pass result messages to the client connecting
>> in any order )
>> 5. It will only pass result(Response) messages  to the socket(source
>> socket from client) from which from it received request.
>>
>> PROBLEM
>> 1. I can only pass tcp stream to server. For this I am using netty
>> 2. I can send request using netty as a producer (It will use say a socket
>> 9.9.9.9:4321 to connect to server 10.1.1.10:1234)
>> 3. It is InOnly, means there will be no response, as  the server will
>> take time about 30 seconds
>> 4. after server processing the request, it will connect to the client
>> (which is now has to be a server listening on the same socket
>> 9.9.9.9:4321). IS IT POSSIBLE ?
>> 5. Now on listening, this result (Response) message has to be stored in a
>> queue
>>
>> As the following link says, there is a clientMode which sounds like a
>> solution
>>
>> http://camel.465427.n5.nabble.com/Bi-directional-comms-on-TCP-connection-td5765782.html
>>
>> OK, I got clientMode working. It makes a connection with server port
(like a tunnel). And when if some response comes from serve, it is received
to camel.
tcp       0      0 192.168.122.1:49521     192.168.122.101:5023
 ESTABLISHED

But I want to use same socket 192.168.122.1:49621 as producer as well.
Please help




> 1. Is this even possible using camel netty only ? How can a consumer just
>> turn to a producer
>>
> dynamically.
>>
> How can a producer turn into a consumer or vise versa
>
>
>> 2. If so how ? I mean, could find enough evidence or document.
>>
>> --
>> Thanks & Regards
>>
>> Jagannath Naidu
>> Keen & Able Computers Pvt. Ltd.
>>
>
>
>
> --
> Thanks & Regards
>
> Jagannath Naidu
> Keen & Able Computers Pvt. Ltd.
>



-- 
Thanks & Regards

Jagannath Naidu
Keen & Able Computers Pvt. Ltd.

Reply via email to