activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Wooldridge <brett.wooldri...@gmail.com>
Subject BlobMessage 'name' attribute not transferring
Date Thu, 02 Dec 2010 01:53:42 GMT
I have a producer creating BlobMessages, and a consumer that consumes them.
 The
producer is connected to Broker A, and the consumer to Broker B.  The two
brokers
are connected in a network.  ActiveMQ version 5.4.1.

The problem I'm experiencing is that while BlobMessages are sent and
received with
no problem, the 'name' property set by the producer on the BlobMessage is
null on
the client.

The producer looks something like this:

   BlobMessage blobMessage = jmsSession.createBlobMessage(file);

blobMessage.setName(file.getName());

blobMessage.setStringProperty("file", file.getName());

producer.send(blobMessage);


The String property, "file", passes correctly, so it is certainly a

"workaround" for the issue, however it is still an issue.


The JavaDoc for the setName() call says:


"The name of the attachment which can be useful information if transmitting
files

over ActiveMQ"


I agree, it is useful.  And it seems the "official" way to send the name of
the

"attachment" so I would prefer to use it.


Is this a known issue?  Or am I doing something incorrectly?


Brett

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