activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From watcher <patr...@daly.ws>
Subject Blobmessage question
Date Thu, 05 Aug 2010 08:27:09 GMT

I'm trying to understand the use of blobmessage and if it could be a possible
solution to a requirement I have.

>From reading the ActiveMQ in Action I can see that you can send a file via
blobmessage

BlobMessage message = session.createBlobMessage(new
URL("http://some.shared.site.com/bigfile
producer.send(message);

1. Is it possible to send the file as part of the message or does it have to
sent out of band before creating the message. ie. The blob message is really
a link to an remote resource which will be automatically loaded by the
consumer.

2. Is it  possible to send an object (POJO) along with the blobmessage. The
idea that the consumer could receive a pojo and an remote file.

To give you an idea of what I thinking. I have a object that contains an
image. I'd like to send the image along with its properties to a queue and
the consumer would retrieve the image via blobmessage and its properties. If
I set a prefetch = 2 , will the consumer have a second message loaded and
ready to be consumed. What I hoping is to reduce the delay between
retrieving the image remotely.

-Paddy


-- 
View this message in context: http://old.nabble.com/Blobmessage-question-tp29354676p29354676.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message