activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve.V." <stephen.vinc...@sas.com>
Subject Re: Copy Message from queue to a text file.
Date Thu, 29 Aug 2013 23:13:39 GMT
The following is a sample SAS program that puts a message on a queue, then
gets it off and writes it to a flat file:

/* Assign a fileref to the queue. */
filename myq ActiveMQ user=admin pass=admin
    URL='http://localhost:8161/api/message/mytestq?type=queue';

/* Put a message on a queue named "mytestq" */
data _null_; file myq; put 'This just a text message.'; run;
 
/* GET the message off the queue and write it to "flat.txt". */
data _null_; file 'flat.txt'; infile myq; input; put _infile_; run;



-----
Stephen Vincent
--
View this message in context: http://activemq.2283324.n4.nabble.com/Copy-Message-from-queue-to-a-text-file-tp4670925p4670938.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message