activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rain.xk" <rain...@gmail.com>
Subject ActiveMQInputStream receive problem
Date Sat, 08 Jul 2006 04:24:59 GMT

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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message