Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 2984 invoked from network); 4 Jun 2008 12:28:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2008 12:28:32 -0000 Received: (qmail 78331 invoked by uid 500); 4 Jun 2008 12:28:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 78313 invoked by uid 500); 4 Jun 2008 12:28:34 -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 78302 invoked by uid 99); 4 Jun 2008 12:28:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 05:28:34 -0700 X-ASF-Spam-Status: No, hits=4.1 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WEIRD_PORT,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 12:27:37 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K3s5v-0007LJ-Cf for users@activemq.apache.org; Wed, 04 Jun 2008 05:27:59 -0700 Message-ID: <17645544.post@talk.nabble.com> Date: Wed, 4 Jun 2008 05:27:59 -0700 (PDT) From: balderman To: users@activemq.apache.org Subject: Re: BlobMessage - How to make it work? In-Reply-To: <17645127.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: balderman@gmail.com References: <17644495.post@talk.nabble.com> <17645127.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi I do not think the file is uploaded.:-( Where should I look for it? Here: \webapps\fileserver ? Is the original file name is kept? Thanks Avishay Marco Buss wrote: > > Hello, > > check if the blob is uploaded to the fileserver webapp. If the blob is > uploaded try this: > > class="org.apache.activemq.pool.PooledConnectionFactory" > destroy-method="stop"> > > > > > http://xyz.16.233.50:61618?jms.blobTransferPolicy.uploadUrl=http://xyz.16.233.50:8161/fileserver/ > > > > > false > > > > > > If this not work. Please provide a unit test for the problem. > > regards > Marco Buss > > > balderman wrote: >> >> Hi >> I am using ActiveMQ 5.1. >> I want to to use BlobMessage in order to send large amounts of data. >> When the consumer get the message and the below code is executed: >> inputStream = blobMessage.getInputStream(); >> the inputStream is null. >> I have seen few posts regarding this issue but I could not understand >> what is the right way to do it. >> More info: >> 1) The message sender and the message consumer run on my PC. >> 2) The message broker run on a different machine. >> 3) I am using Spring JMS template. Here is a config snippet of the >> Sender: >> (I replaced some part of the IP with xyz - but this is the IP of the >> message broker) >> ... >> > class="org.apache.activemq.pool.PooledConnectionFactory" >> destroy-method="stop"> >> >> >> >> >> http://xyz.16.233.50:61618?jms.blobTransferPolicy.uploadUrl=http://xyz.16.233.50:8161/fileserver/ >> >> >> >> >> ... >> 4) Here is how I create the BlobMessage: >> blobMessage = activeMQSession.createBlobMessage(new File("path to the >> local file system here")); >> When I call blobMessage.getURL() I get null. >> If I create the message with a URL as argument: >> blobMessage = activeMQSession.createBlobMessage(new URL("url here")); >> the call to getURL() return a valid value. >> 5) I know there is an option to use BlobTransferPolicy. Do I have to use >> it or the default is good enough? >> Please advice. >> >> Thanks >> >> Avishay >> > > -- View this message in context: http://www.nabble.com/BlobMessage---How-to-make-it-work--tp17644495s2354p17645544.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.