From users-return-10253-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Mon Aug 13 10:57:06 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 5386 invoked from network); 13 Aug 2007 10:57:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2007 10:57:05 -0000 Received: (qmail 33850 invoked by uid 500); 13 Aug 2007 10:57:03 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 33543 invoked by uid 500); 13 Aug 2007 10:57:02 -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 33534 invoked by uid 99); 13 Aug 2007 10:57:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 03:57:02 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=PLING_QUERY,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.strachan@gmail.com designates 64.233.184.238 as permitted sender) Received: from [64.233.184.238] (HELO wr-out-0506.google.com) (64.233.184.238) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Aug 2007 10:56:59 +0000 Received: by wr-out-0506.google.com with SMTP id 25so143774wry for ; Mon, 13 Aug 2007 03:56:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VNQeYv1yx/V4cdhr8CVnY1ppJQ8TIkXeTn1QX3iR2Cbfuqn1wb8eTaDiEmjvBNYSL7hYOK2JVxTLDcf6RB0Nzo4YxvBnNOUqBmmHUInaoSthovJVFNt9LrtjGE1PnF/hMvz8dUO1act1zXGXR9StG10+pVmOedT9VhjT5P905Mw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hGaQnBjnuCZd2beU6wZIzvU4ACylz925jItGGyaw/ZFgScPrUbDzyH3BWEZElTif/nIln6Nwsb3H6iCFKbsmhFZnmf7/26KojTU4odm9wQus8DzWhubotGseUVWrdOk1Y0g7j72csPR+Dy0k4Z2bgicawuMO/Y9nAodKzdIy4I4= Received: by 10.90.89.5 with SMTP id m5mr4939015agb.1187002598679; Mon, 13 Aug 2007 03:56:38 -0700 (PDT) Received: by 10.90.67.18 with HTTP; Mon, 13 Aug 2007 03:56:38 -0700 (PDT) Message-ID: Date: Mon, 13 Aug 2007 11:56:38 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Blob Message is a skin game??? not real ?!?? In-Reply-To: <12123361.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12123361.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On 8/13/07, OnlyLove wrote: > > I send the blob message using... > > BlobMessage message = session.createBlobMessage(new > URL("http://localhost:8080/test.pdf")); > > then, I close the tomcat server, and try to get the message from the amq > broker, > fail ! (it seems that the blob message just send the url to the broker, but > not the real data of the file!) This is by design. If you create a blob message using a URL, the assumption is that the URL points to some hosted file server / web server and that is where the data will remain. If you want ActiveMQ to actually take ownership of the data, then create a BLOB message using a File / InputStream as the command argument. See the JavaDoc. http://activemq.apache.org/maven/activemq-core/apidocs/org/apache/activemq/ActiveMQSession.html#createBlobMessage(java.net.URL) also the documentation explains this http://activemq.apache.org/blob-messages.html -- James ------- http://macstrac.blogspot.com/