You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by adrian <ab...@central1.com> on 2013/12/19 21:09:25 UTC
BlobMessage and authentication
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.
Re: BlobMessage and authentication
Posted by cristisor <cr...@yahoo.com>.
Hello,
You can set the BlobDownloadStrategy on a BlobTransferPolicy object and the
transfer policy on the ActiveMQConnection. The authentication must be set on
the URI, for example ftp://<user name>:<password>@<ftp_site_address>.
--
View this message in context: http://activemq.2283324.n4.nabble.com/BlobMessage-and-authentication-tp4675718p4675800.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.