String threadName = ctx.getThread().getThreadName();
int indexOfDash = threadName.indexOf("-");
String currentThreadCounter = threadName.substring(indexOfDash+1);
String fileUrl = vars.get("fileUrl");
String fileUrl1 = "";
String size = "";
${__fifoPut(currentThreadCounter, fileUrl)};
${__fifoSize(currentThreadCounter, size)};
${__fifoPop(currentThreadCounter, fileUrl1)};
print("put to queue " + currentThreadCounter + " fileUrl :"+fileUrl1 + "; size:" +size);
But the output shows that the fileUrl is empty and the size is empty too.
It works when I use jp@gc - Inter-Thread Communication PostProcessor; But I need to make the queue name dynamic so I need to use beanshell script.