When I receive ActiveMQInputStream like this:
ActiveMQInputStream streamMsg = (ActiveMQInputStream)
connection.createInputStream(destination)
while ((byteread = streamMsg.read(buffer)) != -1) { //-------- if there is
no message in the destination, the program stop here!
log.info("get file now======");
file.write(buffer, 0, byteread);
}
How can I solve the problem?
--
View this message in context:
http://www.nabble.com/ActiveMQInputStream-receive-problem-tf1909676.html#a5227970
Sent from the ActiveMQ - User forum at Nabble.com.