You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "rain.xk" <ra...@gmail.com> on 2006/07/08 06:24:59 UTC

ActiveMQInputStream receive problem

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.