I have a tcp/ip thread named “user_in” under the process name of “USERS” this thread based on user inputs queries the database and create a message let say “Input Result” now we need to post this message to another tcp/ip thread named “db_in” under the process name of “DATABASES”. All the threads are under the same site name “testsite”
How do we achieve this using tcl script . Based on forum inputs i have written the following script but it does not seems to work.
set destinationThread “db_in”
set databaseResult “Input Result”
set metadata “ORIGSOURCECONN $::HciConnName SOURCECONN thread DESTCONN $destinationThread ORIGDESTCONN $destinationThread TYPE data CLASS engine”
set newMessage [msgcreate -recover -meta $metadata]
msgset $newMessage $databaseResult
return lappend dispList “KILL $mh” “CONTINUE $newMessage”