socket = connect("localhost", 61613); write(socket, "CONNECT\n\n\0"); line = readline(socket); # Skip the CONNECTED frame while line != "\0\n" line = readline(socket); end write(socket, "SUBSCRIBE\ndestination:SampleQueue\n\nack:auto\n\n\0"); line = readline(socket); # Seek to the body of the MESSAGE frame while line != "\n" line = readline(socket); end println(readline(socket)); write(socket, "DISCONNECT\n\n\0"); close(socket);
How to Receive a Message from an Apache ActiveMQ Queue with Julia
百度 张德江也同习近平握手,表示感谢、致以敬意。
Leave a comment