Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 51283 invoked from network); 13 May 2010 09:16:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 May 2010 09:16:09 -0000 Received: (qmail 49891 invoked by uid 500); 13 May 2010 09:16:09 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 49809 invoked by uid 500); 13 May 2010 09:16:09 -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 49801 invoked by uid 99); 13 May 2010 09:16:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 09:16:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chubrilo@gmail.com designates 209.85.161.43 as permitted sender) Received: from [209.85.161.43] (HELO mail-fx0-f43.google.com) (209.85.161.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 May 2010 09:16:02 +0000 Received: by fxm14 with SMTP id 14so2530621fxm.2 for ; Thu, 13 May 2010 02:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=8h0E8UAhrrBapyHsoIOacbPMNU2i5qnWY8sZaoe+468=; b=O5/4Dcasl42SszAnOUEykZFDzT8QADt1LAy6N8hiu2vN/jDFDXBvtuRSu83NE7ycX6 E/hUj9hgxFI+d5jHuj6u2MzvrdceJrWmNwrJqgsY0mIw33hfG6oMLx39/nC591ADt+hq N8RF5W0dZknYfD76InblOgwbMkasp+Jg48fUg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=T9ldghU+yLXxCsPrZ91FrflS2FpmIwwzZbLIjgBBsiXEx/8q720RGXoBacyBO0lqHL z8NHncG0wCexP2GAYKdpcWEq3F6mQDzrTtgJZr0IP8K7IHTvLT/Yis5N5+GRv2Fgqih7 oIrXNWaOeHHnWtV1KoU254JI+qGBeVba7BCEM= MIME-Version: 1.0 Received: by 10.239.131.211 with SMTP id 19mr795487hbo.125.1273742142078; Thu, 13 May 2010 02:15:42 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.239.153.205 with HTTP; Thu, 13 May 2010 02:15:42 -0700 (PDT) In-Reply-To: <28545226.post@talk.nabble.com> References: <28543236.post@talk.nabble.com> <28544338.post@talk.nabble.com> <28545226.post@talk.nabble.com> Date: Thu, 13 May 2010 11:15:42 +0200 X-Google-Sender-Auth: a1eGohF-OZ7meMyFnR9t5hWHgOM Message-ID: Subject: Re: How do I deploy the "ActiveMQ-fileserver" webapp into tomcat while using BlobMessage? From: Dejan Bosanac To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001485f49a7eea01f2048676336b X-Virus-Checked: Checked by ClamAV on apache.org --001485f49a7eea01f2048676336b Content-Type: text/plain; charset=ISO-8859-1 Hi, yeah, this seems like a proper way to do it (I seems to missed it before). So after you consume the message, just use strategy to delete the file. I'll document it later and close the issue. Thanks for the pointer. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Thu, May 13, 2010 at 10:55 AM, ireneshy wrote: > > Hi, > Thanks for your help. About deleting files, I've seen code > here: > http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/blob/DefaultBlobUploadStrategyTest.java?r=HEAD > > I think there is some code that be used for reference: > > BlobTransferPolicy policy = connectionFactory.getBlobTransferPolicy(); > DefaultBlobUploadStrategy strategy = new > DefaultBlobUploadStrategy(policy); > strategy.deleteFile((ActiveMQBlobMessage)blobMsg); > > I've already test these code in my consumer client, and it works well. > Isn't it a proper way to solve this problem? I doubt. > > > Dejan Bosanac wrote: > > > > Hi, > > > > all you have to do is to define jms.blobTransferPolicy.defaultUploadUrl > in > > your broker url, like > > > > > vm://localhost?jms.blobTransferPolicy.defaultUploadUrl=ftp://activemq:activemq@localhost > > /blob > > > > Take a look at FTPBlobTest for more info > > > > > http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/blob/FTPBlobTest.java?r=HEAD > > > > wrt deleting files, I'm afraid that's one more open issue > > https://issues.apache.org/activemq/browse/AMQ-2713 > > > > < > http://fisheye6.atlassian.com/browse/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/blob/FTPBlobTest.java?r=HEAD > > > > Cheers > > -- > > Dejan Bosanac - http://twitter.com/dejanb > > > > Open Source Integration - http://fusesource.com/ > > ActiveMQ in Action - http://www.manning.com/snyder/ > > Blog - http://www.nighttale.net > > > > > > On Thu, May 13, 2010 at 8:50 AM, ireneshy wrote: > > > >> > >> Hi, > >> Thank you very much. Is there any examples about using external FTP > >> server to store files? > >> And another question, how can I clean the files uploaded to the > >> directory of "fileserver" app? > >> > >> > >> Dejan Bosanac wrote: > >> > > >> > Hi, > >> > > >> > there's an open issue for this: > >> > https://issues.apache.org/activemq/browse/AMQ-2667 > >> > > >> > You can try to rewrite it to conform your needs. The alternative is to > >> use > >> > external FTP server to store files. > >> > > >> > Cheers > >> > -- > >> > Dejan Bosanac - http://twitter.com/dejanb > >> > > >> > Open Source Integration - http://fusesource.com/ > >> > ActiveMQ in Action - http://www.manning.com/snyder/ > >> > Blog - http://www.nighttale.net > >> > > >> > > >> > On Thu, May 13, 2010 at 5:17 AM, ireneshy > >> wrote: > >> > > >> >> > >> >> I'm using ActiveMQ BlobMessage to transfer large files, but now I > want > >> to > >> >> set > >> >> up ActiveMQ using Tomcat 6.0. I've already configurated the JNDI for > >> the > >> >> ConectionFactory and Queue to work within Tomcat. But you know that > >> >> BlobMessage must be send to a application that can receive PUT > >> message, > >> >> and > >> >> the default app is fileserver using embedded server Jetty, so how can > >> I > >> >> using this fileserver app in Tomcat? Thanks very much for your help~! > >> >> -- > >> >> View this message in context: > >> >> > >> > http://old.nabble.com/How-do-I-deploy-the-%22ActiveMQ-fileserver%22-webapp-into-tomcat-while-using-BlobMessage--tp28543236p28543236.html > >> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >> >> > >> >> > >> > > >> > > >> > ----- > >> > Dejan Bosanac > >> > > >> > Open Source Integration - http://fusesource.com/ > >> > ActiveMQ in Action - http://www.manning.com/snyder/ > >> > Blog - http://www.nighttale.net > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/How-do-I-deploy-the-%22ActiveMQ-fileserver%22-webapp-into-tomcat-while-using-BlobMessage--tp28543236p28544338.html > >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. > >> > >> > > > > > > ----- > > Dejan Bosanac > > > > Open Source Integration - http://fusesource.com/ > > ActiveMQ in Action - http://www.manning.com/snyder/ > > Blog - http://www.nighttale.net > > > > -- > View this message in context: > http://old.nabble.com/How-do-I-deploy-the-%22ActiveMQ-fileserver%22-webapp-into-tomcat-while-using-BlobMessage--tp28543236p28545226.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > --001485f49a7eea01f2048676336b--