Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 30749 invoked from network); 17 Mar 2008 13:23:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 13:23:46 -0000 Received: (qmail 55833 invoked by uid 500); 17 Mar 2008 13:23:41 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 55814 invoked by uid 500); 17 Mar 2008 13:23:41 -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 55805 invoked by uid 99); 17 Mar 2008 13:23:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 06:23:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.206.165.57] (HELO snoopy.jarrel.com.au) (203.206.165.57) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 13:23:03 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by snoopy.jarrel.com.au (Postfix) with ESMTP id A43881CA8C2E for ; Tue, 18 Mar 2008 00:20:17 +1100 (EST) X-Virus-Scanned: amavisd-new at X-Spam-Score: -4.018 X-Spam-Level: Received: from snoopy.jarrel.com.au ([127.0.0.1]) by localhost (snoopy.jarrel.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OUr93NEBHXqw for ; Tue, 18 Mar 2008 00:20:16 +1100 (EST) Received: from noodles.local (unknown [192.168.90.211]) by snoopy.jarrel.com.au (Postfix) with ESMTP id 99FCC1CA8C2D for ; Tue, 18 Mar 2008 00:20:16 +1100 (EST) Message-ID: <47DE70C0.4060100@jarrel.com.au> Date: Tue, 18 Mar 2008 00:23:12 +1100 From: Gary Jarrel User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: users@activemq.apache.org Subject: Deploying the Resource Adapter (was: Receipt of Simple Text Message) References: <19810530.211205750249478.JavaMail.root@snoopy.jarrel.com.au> <20405114.231205750391211.JavaMail.root@snoopy.jarrel.com.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Flag: NO X-Old-Spam-Status: No, score=-4.018 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, AWL=0.381, BAYES_00=-2.599] Thank you for a quick answer James! I have configured the application partly as per your instructions, in that I'm using another method to receive the messages, and converting them to JSM TextMessage to forward onto the ActiveMQ connector. I have deployed the connector in Glassfish setting the only property: ServerUrl tcp://localhost:25001 and have made the message bean aware of the adapter. However when the server starts up, I am unable to connect to port 25001 (using simple telnet) and I notice the following message in the logs: [2008-03-18 00:21:25,519] ERROR org.apache.activemq.ra.ActiveMQEndpointWorker (ActiveMQEndpointWorker.java:243) - Endpoint connection to JMS broker failed: Could not connect to broker URL: tcp://localhost:6969. Reason: java.net.ConnectException: Connection refused [2008-03-18 00:21:25,519] ERROR org.apache.activemq.ra.ActiveMQEndpointWorker (ActiveMQEndpointWorker.java:244) - Endpoint will try to reconnect to the JMS broker in 30 seconds Is there anything I'm missing here. Please excuse the myriad of questions, I have spent quite some time reading all the docs and doing my research. Thank you! Gary James Strachan wrote: > On 17/03/2008, Gary Jarrel wrote: > >> Hi All! >> >> I've very new to ActiveMQ and my research so far has proven fruitless. >> >> I need to be able to receive simple one line text messages from a remote server. >> >> I do not have any control over this server hence I can not request any changes to the way the data is sent. The remote server basically connects to my server on an IP address and a port and sends one line text messages, end of each message is indicated by a new line character. Eg: >> >> 01,Sample1,-10 >> >> I can not seem to figure out a way to configure an ActiveMQ resource adapter to be able to handled this scenario. The remote server does not need and/or care whether our servers have received the message, it's a very simple system on the other end. >> > > So ActiveMQ is a message broker designed such that the clients either > use the ActiveMQ JMS client or use one of the standard protocols to > communicate with the ActiveMQ broker such as OpenWire, REST or STOMP. > > If you want to send or consume over custom wire protocols such as the > one you describe then I'd recommend using Camel to do this & to route > custom protocols to and from ActiveMQ. > http://activemq.apache.org/camel/ > > > e.g. Camel comes with a MINA component that can be used to support > custom socket protocols... > http://activemq.apache.org/camel/mina.html > > > So inside the broker you'd have a route something like... > > > > > > > > > > >> I would ideally like to utilize the Active MQ resource adapter to receive these messages and forward them onto my message bean running inside a Glassfish server. The only important issue is that the message volumes can be quite high during peak periods, so the resource adapter needs to be able to queue the messages so that the server does not run out of resources. >> > > Once the message is actually on an ActiveMQ queue (e.g. using Camel) > you'll then be able to use the AMQ RA if you wanna use MDBs or you > could just use Spring's MessageListenerContainer stuff > >