Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 40932 invoked from network); 7 Aug 2008 13:24:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2008 13:24:21 -0000 Received: (qmail 39974 invoked by uid 500); 7 Aug 2008 13:24:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 39959 invoked by uid 500); 7 Aug 2008 13:24:19 -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 39948 invoked by uid 99); 7 Aug 2008 13:24:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2008 06:24:19 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=SPF_PASS,WEIRD_PORT,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marco.buss@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 07 Aug 2008 13:23:21 +0000 Received: (qmail invoked by alias); 07 Aug 2008 13:23:47 -0000 Received: from p57B96B5E.dip.t-dialin.net (EHLO [127.0.0.1]) [87.185.107.94] by mail.gmx.net (mp036) with SMTP; 07 Aug 2008 15:23:47 +0200 X-Authenticated: #3130569 X-Provags-ID: V01U2FsdGVkX1+Yjdsu3sSYFdZCPrkB+fRzndhYo+OxnRT0tE9UlX wqFp297EwsrvMw Message-ID: <489AF74E.7020409@gmx.de> Date: Thu, 07 Aug 2008 15:23:26 +0200 From: Marco Buss User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: Broker upload url is null? References: <20080807090046.GA2208@office.redwerk.com> <489AD967.6050804@gmx.de> <20080807115543.GA8832@office.redwerk.com> <489AE820.8050706@gmx.de> <20080807124113.GA10350@office.redwerk.com> <489AEDF5.9050204@gmx.de> <20080807125339.GB10350@office.redwerk.com> In-Reply-To: <20080807125339.GB10350@office.redwerk.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 X-Virus-Checked: Checked by ClamAV on apache.org Eugeny N Dzhurinsky schrieb: > On Thu, Aug 07, 2008 at 02:43:33PM +0200, Marco Buss wrote: > >> Eugeny N Dzhurinsky schrieb: >> >>> On Thu, Aug 07, 2008 at 02:18:40PM +0200, Marco Buss wrote: >>> >>> >>>> First try this. Set CopyMessageOnSend to false on your connection. See >>>> http://www.nabble.com/A-problem-with-blobmessage-on-activemq-5.0-td15523989.html#a17364301 >>>> If this is true (default) the Upload does not work. >>>> >>>> >>> Really, this setting solved the issue when the blob wasn't even tried to be >>> uploaded, however I'm getting weird issue with jetty now - it complains >>> >>> "PUT was not successful: 405 HTTP method PUT is not supported by this URL" >>> >>> on the URL I specified as one to be used for file upload. Looks like XBean >>> configuration for Jetty needs to be updated somehow? >>> >>> >>> >> The so called fileserver webapp must run on the upload URL. >> > > The configuration for jetty in axtivemq.xml > > > > > > resourceBase="webapps/admin" logUrlOnStart="true" /> > resourceBase="webapps/demo" logUrlOnStart="true" /> > resourceBase="webapps/fileserver" logUrlOnStart="true" /> > > > > Currently I can browse http://localhost:8161/fileserver/, so looks like the > web application is up. What else do I need to do in this configuration file in > order to allow the blob to be uploaded on the server? > > Another question is - I learned it is possible to write the stream directly to > the queue (http://activemq.apache.org/jms-streams.html) > > The only thing which is not clear for me - how can I assign the stream to > certain message? Do I need to generate an unique name for the stream, upload > the content to the queue, then produce the message and provide the name for > the saved stream in one of the message properties? Or there is some another > way? And how efficient the streams are in comparison to blob messages? > > The task I need to solve is exchange the data between hosts, the data is > mostly large images of several tens or hundreds of megabytes in size. > > remove the setting of the blobUploadStrategy from your code an use this brokerURL to initialise your ActiveMQConnectionFactory tcp://localhost:1235?jms.*blobTransferPolicy*.defaultUploadUrl=http://localhost:8161/fileserver/