issue with contineously listen to udp port in talend

One Star

issue with contineously listen to udp port in talend

Hello,
I made 2 simple job socketOutput and socketInput, for listen the specific port and fetch data from that port.
and its work successfully. Now i want that port is listen by job continuously. so For that i decided to use tWaitForSocket but in the component tab of tWaitForSocket the form is
port:
Send to Client: (default is "to client : $_")
Then:
Print Client/Server Data
what should i have to write in Send to Client:
I tried it many ways but its gives me error that connection reset.
Wait for your valuable suggestion.
Community Manager

Re: issue with contineously listen to udp port in talend

Hi
The message print to the client, you don't have to write in this filed. There is a global variable in this component return the input string. For example:
tWaitforSocket_1--iterate--tFixedFlowInput---main--tLogrow
on tFixedFlowInput, add one column let's call input_data on schema,
key:value
input_dataSmiley Sad(String)globalMap.get("tWaitForSocket_1_INPUT_DATA"))
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: issue with contineously listen to udp port in talend

Hi,
is there a way to get the incoming connection details (IP and port) when using twaitforsocket?
Moderator

Re: issue with contineously listen to udp port in talend

Hi,
Checkout the option "Print client/server data", you will get the incoming connection details(only IP not port).
See my pic
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: issue with contineously listen to udp port in talend

thanks sabrina
appreciate it
Moderator

Re: issue with contineously listen to udp port in talend

Hi,
You are welcome, feel free post your issue on forum.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.