0
votes

How to send response back to Jmeter over TCP?

I've created a TCP sampler in Jmeter which is giving input to my Message broker tool.

I am getting an input message from Jmeter but I cannot send the response back to Jmeter. I am unable to locate the port to send response back to Jmeter.

My question is: Is there a listener port for Jmeter to get the reponse?

I've tried with ports 4445, 1234 and 1099 but that did not work.

1
Is there any port in jmeter is waiting for reponse ?user1673787
I think I don't understand the question. Jmeter is used to test web applications, which means It usually works as a client. So, why do you need a port for Jmeter? What you really need is to know the port (and hostname) of the application you are testing with Jmeter.Albert
What message broker is this? Why aren't you using the JMS samplers?RaGe
we re getting message as input from jmeter to our tool (IBM Message Broker) ... but there is no response data in jmeter.user1673787
Jmeter is waiting for response data...user1673787

1 Answers

0
votes

We configured Message broker

TCP Server input Node with Port number as : 1111

TCP Server Output node with Port number as : 1111

Jmeter sends message to Message Broker running IPaddress and 1111 port number.

and it wait for the response from Message Broker on the Same port. eg : 1111

Sending : Jmeter (196.35.22.33:1111) ---> (TCP Server input node:1111)Message Broker

Receiving : Message Broker (TCP Server output node: 1111)---> Jmeter(196.35.22.33:1111)

Note: 196.35.22.33 is just an example

Thank you for your suggestions made me think different