Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 87860 invoked from network); 14 May 2010 16:00:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 May 2010 16:00:17 -0000 Received: (qmail 70160 invoked by uid 500); 14 May 2010 16:00:17 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 70130 invoked by uid 500); 14 May 2010 16:00:17 -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 70122 invoked by uid 99); 14 May 2010 16:00:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 May 2010 16:00:17 +0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Fri, 14 May 2010 16:00:13 +0000 Received: by fxm14 with SMTP id 14so6438446fxm.2 for ; Fri, 14 May 2010 08:59:51 -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=OYhBUObPjnsdt7teg3ug+cjvydJBnEwHvERnTIma5Jc=; b=AoPxmz5aJa7R5X7FigjnUYi5B8ZGMdPhHvWKuzJUfEZqGOKoOUCZ1U5clKvzl1bpzR IdCuaxMYcwOGxG5z+Rre5N9OjwUvzP4bfY0MTKS9Hzpdenu6LkpBip6fZ/lfBvgX1NcJ ozzvkO6Z11rufsn2myPE75ZBX7Hy9jzxRhK/E= 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=Z+7je8QDHg07E2id3g0jL4cYs6hfUY9kVJYWZQItThqzLb3mncFbMmzxn4HY+/H7sj srKYmIKcd2VNz/EJkQ3nuh9rV79hXDk61dbZsLW3V2WSbJVWFddJJ9HzMHhfpliXTQ0w wN0/cI1+gemoM0+7znu7FV7vGcvQQS3llE+/M= MIME-Version: 1.0 Received: by 10.239.189.140 with SMTP id t12mr161393hbh.172.1273852791373; Fri, 14 May 2010 08:59:51 -0700 (PDT) Sender: chubrilo@gmail.com Received: by 10.239.153.205 with HTTP; Fri, 14 May 2010 08:59:51 -0700 (PDT) In-Reply-To: <28554293.post@talk.nabble.com> References: <28543236.post@talk.nabble.com> <28544338.post@talk.nabble.com> <28545226.post@talk.nabble.com> <28554293.post@talk.nabble.com> Date: Fri, 14 May 2010 17:59:51 +0200 X-Google-Sender-Auth: 6erFC_xUDTnIYYMQJL_2ElzbQfU 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=001485f1e7a6203f8c04868ff73c --001485f1e7a6203f8c04868ff73c Content-Type: text/plain; charset=ISO-8859-1 Hi, both these issues are now fixed. I'll write some docs for it on Monday. It'd be great if you could test the next snapshot (or build the trunk). 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 Fri, May 14, 2010 at 3:18 AM, ireneshy wrote: > > yeah, right. That'll be very convenient for cleaning files after cosuming. > We > really appreciate that. > > > Dejan Bosanac wrote: > > > > Hi, > > > > on a second look deleteFile() is not implemented for FTP strategy. I need > > to > > implement it for FTP and make it accessible via ActiveMQBlobMessage > > interface, like > > > > ((ActiveMQBlobMessage)message).deleteFile(); > > > > 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 11:15 AM, Dejan Bosanac > > wrote: > > > >> 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. > >>> > >>> > >> > > > > > > ----- > > 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--tp28543236p28554293.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > --001485f1e7a6203f8c04868ff73c--