Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7714A1040B for ; Thu, 19 Dec 2013 20:10:33 +0000 (UTC) Received: (qmail 72653 invoked by uid 500); 19 Dec 2013 20:10:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 72615 invoked by uid 500); 19 Dec 2013 20:10:32 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 72607 invoked by uid 99); 19 Dec 2013 20:10:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 20:10:32 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 20:10:26 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Vtjue-0007C4-OT for users@activemq.apache.org; Thu, 19 Dec 2013 12:09:40 -0800 Date: Thu, 19 Dec 2013 12:09:25 -0800 (PST) From: adrian To: users@activemq.apache.org Message-ID: <1387483765695-4675718.post@n4.nabble.com> Subject: BlobMessage and authentication MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I'm able to use BlobMessage to transfer large files, but run into a problem if the 'out of band' mechanism requires authentication. For example, when I send a BlobMessage with url = "http://fileserver:8080/bigFile.dat" I can read the input stream at the consumer end just fine. When the http server is set up to require authentication I get an exception because the DefaultBlobDownloadStrategy.getInputStream() isn't authenticated and sees a 401 error. There's no way to specify the credentials in the BlobMessage, and while URLs of the form http://username:password@fileserver:8080/bigFile.dat work in (some) browsers, they don't work in a BlobMessage. Is use of authentication on out of band mechanisms (http and ftp) unsupported? I considered writing my own AuthenticatingBlobDownloadStrategy but it's unclear how to replace the default one. Any clues? Thanks, -Adrian -- View this message in context: http://activemq.2283324.n4.nabble.com/BlobMessage-and-authentication-tp4675718.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.