Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 66604 invoked from network); 14 Sep 2006 10:38:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 10:38:29 -0000 Received: (qmail 55629 invoked by uid 500); 14 Sep 2006 10:38:29 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 55610 invoked by uid 500); 14 Sep 2006 10:38:28 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 55601 invoked by uid 99); 14 Sep 2006 10:38:28 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 03:38:28 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=lists@nabble.com; spf=pass X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: pass (idunn.apache.osuosl.org: domain nabble.com designates 72.21.53.35 as permitted sender) Received: from ([72.21.53.35:43754] helo=talk.nabble.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id C5/A0-04337-88039054 for ; Thu, 14 Sep 2006 03:37:07 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GNoZS-0002PD-B6 for activemq-users@geronimo.apache.org; Thu, 14 Sep 2006 03:35:50 -0700 Message-ID: <6303186.post@talk.nabble.com> Date: Thu, 14 Sep 2006 03:35:50 -0700 (PDT) From: YM To: activemq-users@geronimo.apache.org Subject: Re: Beginner need help starting In-Reply-To: <4509275E.5000307@exist.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: yoann.mainguy@cdiscount.com References: <6301776.post@talk.nabble.com> <4509210E.9000604@exist.com> <6302504.post@talk.nabble.com> <4509275E.5000307@exist.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok, great! Now I set a queue up and the broker is working. What's the next step? ;) Where is the binary used to send a file to a host on a queue? And where is the binary to get the sent file from the queue and write it on a local path? Thanks, YM Adrian Co wrote: > > Sorry, forgot to mention that this would only work for ActiveMQ 4.1. Try > downloading and building it from source: > https://svn.apache.org/repos/asf/incubator/activemq/trunk/ > > YM wrote: >> Thanks for your reply. >> When I use some default sample broker initialization file, the broker >> starts. But as soon as I want to define a queue or topic, it fails. >> >> myBroker2.xml: >> >> >> > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >> /> >> >> >> >> >> >> >> >> >> >> >> >> >> Startup of activemq: >> [root@hostname activemq]# activemq >> xbean:file:$ACTIVEMQ_HOME/myBroker2.xml >> ACTIVEMQ_HOME: /usr/local/activemq >> Loading message broker from: xbean:file:/usr/local/activemq/myBroker2.xml >> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: >> org.springframework.beans.factory.BeanCreationException: Error creating >> bean >> with name 'org.apache.activemq.xbean.XBeanBrokerService' defined in URL >> [file:/usr/local/activemq/myBroker2.xml]: Error setting property values; >> nested exception is >> org.springframework.beans.NotWritablePropertyException: >> Invalid property 'destinations' of bean class >> [org.apache.activemq.xbean.XBeanBrokerService]: Bean property >> 'destinations' >> is not writable or has an invalid setter method: Does the parameter type >> of >> the setter match the return type of the getter? >> ERROR: java.lang.Exception: >> org.springframework.beans.factory.BeanCreationException: Error creating >> bean >> with name 'org.apache.activemq.xbean.XBeanBrokerService' defined in URL >> [file:/usr/local/activemq/myBroker2.xml]: Error setting property values; >> nested exception is >> org.springframework.beans.NotWritablePropertyException: >> Invalid property 'destinations' of bean class >> [org.apache.activemq.xbean.XBeanBrokerService]: Bean property >> 'destinations' >> is not writable or has an invalid setter method: Does the parameter type >> of >> the setter match the return type of the getter? >> >> Any Idea? >> >> Thanks, >> >> YM >> >> >> >> Adrian Co wrote: >> >>> Hi, >>> >>> You can try: >>> http://www.activemq.org/site/getting-started.html >>> http://www.activemq.org/site/hello-world.html >>> >>> I don't know if I understood your scenario, but you could try starting a >>> broker in one machine, and just have JMS clients on the other machines. >>> You can configure queues statically if you want refer to: >>> http://www.activemq.org/site/configure-startup-destinations.html >>> >>> You can use JMS text messages, stream messages, or object messages >>> depending on the data you want to transfer. >>> >>> Hope any of these helps. >>> >>> >>> YM wrote: >>> >>>> Hi, >>>> >>>> Here's the situation: >>>> Whe are now using Websphere MQ to transfer files (text/binary) between >>>> 3 >>>> hosts (2 Windows, 1 Unix). >>>> For example on one hand, a file is put in a "inbox" forler. It's then >>>> transferred by MQ to a queue on a remote machine. A Shell/BAT script is >>>> used >>>> on the remote machine to get the files/messages out of the queue and >>>> then >>>> process them. >>>> >>>> My problem is: I have no Idea of how to achieve this using ActiveMQ. >>>> >>>> I successfully installed ActiveMQ on a Unix (Linux RHEL4) host, and can >>>> use >>>> the provider/consumer sample, or launch a Broker. But as I'm new to >>>> this, >>>> I >>>> don't know how to >>>> . Configure a queue, and have a broker permanently accepting entries on >>>> the >>>> queue - configure multiple queues >>>> . Insert a file in the queue from host 1 to be sent on host 2 >>>> . Retrieve files from the queue >>>> >>>> I've tried using HermesJMS (v1.10). It's working locally, but can't >>>> find >>>> how >>>> to set up the "remote" thig. And furthermore, it can't be automated or >>>> scripted, which is not good for me. >>>> I've tried ServiceMix, but I don't think it's the right thing. >>>> I've tried to setup the WebConsole, but it won't work : throws lots of >>>> errors though Maven 2.0.4 is installed. >>>> >>>> I haven't been able to find any info in the Documentation (nor anywhere >>>> else), no tutorials, anything. >>>> >>>> So would you please guide me, at least on the general steps I'll have >>>> to >>>> do >>>> to have something as functionnal (and simple) to use as WebSphere MQ ? >>>> >>>> Thanks in advance, >>>> >>>> YM >>>> >>>> >>>> >>> >>> >> >> > > > -- View this message in context: http://www.nabble.com/Beginner-need-help-starting-tf2270359.html#a6303186 Sent from the ActiveMQ - User forum at Nabble.com.