ok, but i can't get this to work, I have the following example:

in the server side:

...
Destination destination = session.createQueue("TransferQueue");
BlobMessage bmsg = session.createBlobMessage(new File("D:/Film.avi"));
producer.send(bmsg);
...

and in the client side:

...
MessageConsumer consumer = session.createConsumer(destination);
BlobMessage msg =  (BlobMessage)consumer.receive();
  System.out.println(bmsg.getURL());
  System.out.println(bmsg.getInputStream());
...
the output of this is: null, null...

what happening here? how i can get the file??


 


-- 
View this message in context: 
http://www.nabble.com/Receiving-BlobMessage-with-activeMQ-4.2-tf3431028s2354.html#a9566199
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to