activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iosev Perez Rivero" <iper...@uci.cu>
Subject problem with blobmessage in activemq 5.0
Date Thu, 21 Feb 2008 04:27:05 GMT
When i create blobmessage object and print the inputstream, printed NULL, why??? then when
i send the message the file not sending, the message sending empty.

 

Please may anybody help me??

 

Here is code:

 

   conn = (ActiveMQConnection)cf.createConnection();

   session = (ActiveMQSession) conn.createSession(false, Session.AUTO_ACKNOWLEDGE);

   Destination destination = new ActiveMQQueue("Queue");

   MessageProducer producer = session.createProducer(destination);

   

   BlobMessage message = session.createBlobMessage(new File("src\\BlobMessage\\file\\foto.jpg"));

   

   System.out.println(message.getInputStream());

   

   producer.send(message);

 

 

 

Ing. Iósev Pérez Rivero

Dirección Técnica - IP

Universidad de las Ciencias Informáticas

 


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