You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "nono (JIRA)" <ji...@apache.org> on 2016/06/20 11:32:05 UTC

[jira] [Created] (AMQ-6329) How to write defaultUploadUrl for sending BlobMessage in ActiveMQ 5.8

nono created AMQ-6329:
-------------------------

             Summary: How to write defaultUploadUrl for sending BlobMessage in ActiveMQ 5.8
                 Key: AMQ-6329
                 URL: https://issues.apache.org/jira/browse/AMQ-6329
             Project: ActiveMQ
          Issue Type: Bug
            Reporter: nono


Hi, all. I'm fresh here. Here is my issue: My system uses activemq 5.8 platform in sending blobmessage. But when sending, it doesn't work. And the console prints out below:
javax.jms.JMSException: PUT was not successful: 401 Unauthorized

Here is my code:ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(
"tcp://localhost:61616?jms.blobTransferPolicy.defaultUploadUrl=http://admin:admin@127.0.0.1:8161/fileserver/");

I put "http://admin:admin@127.0.0.1:8161/fileserver/" into browser's address, it works. 
So, nice guys, help me please.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)