Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 24180 invoked from network); 16 Aug 2010 14:41:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 14:41:45 -0000 Received: (qmail 89203 invoked by uid 500); 16 Aug 2010 14:41:45 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 88998 invoked by uid 500); 16 Aug 2010 14:41:43 -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 88990 invoked by uid 99); 16 Aug 2010 14:41:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 14:41:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish121@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qy0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 14:41:38 +0000 Received: by qyk29 with SMTP id 29so3473588qyk.2 for ; Mon, 16 Aug 2010 07:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=wd6D1MeGMRKeo5Ri6AKLPB1SlQNTeckwfpI2rUPUddY=; b=AnwTnSlQfd0BefQSilJeFmqe1F0NCdEl3Ch+cBskcPWwDxyAEj6QKOCKwEcSB/RWwc uXrDXecZ+ul38MhYfcoT6jogXB24aVKz78iwT9z1Rhuj0LyaIyZzhP6qwnoF2LJafxNF aziYkDYzQvC+O9sTkRxMsmUjfLtYnnKRRgNtU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=TQI8s7TdIYNqkt2sQhODutpGVbxo6gk+ojIDQdagkDe5XJcKRr/waXN0jqWhSUca7M r9mnMnutLFgJvSQ6XCkJxgcGuO3jR1FBrhIijQiQ0PaosF+BAGQFthtkPiSrzrX88Fca z0Gqqw+Ew3w1Xz6VsZPYvSbetuoINrjVmjpT4= Received: by 10.224.19.200 with SMTP id c8mr3307933qab.309.1281969676792; Mon, 16 Aug 2010 07:41:16 -0700 (PDT) Received: from [192.168.2.150] (c-76-21-195-19.hsd1.va.comcast.net [76.21.195.19]) by mx.google.com with ESMTPS id t24sm7387226qcs.47.2010.08.16.07.41.15 (version=SSLv3 cipher=RC4-MD5); Mon, 16 Aug 2010 07:41:16 -0700 (PDT) Subject: Re: Need simple c# consumer / producer examples From: Timothy Bish To: users@activemq.apache.org In-Reply-To: References: <1281966807.2442.1.camel@localhost> <1281967895.2442.2.camel@localhost> Content-Type: text/plain; charset="UTF-8" Date: Mon, 16 Aug 2010 10:41:14 -0400 Message-ID: <1281969674.2442.5.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 (2.30.2-4.fc13) Content-Transfer-Encoding: 7bit On Mon, 2010-08-16 at 09:31 -0500, Devin Venable wrote: > I would be happy to contribute, assuming I manage to get this sample up and > working. > > Upon running, I get this exception: > > Unhandled Exception: Apache.NMS.NMSConnectionException: No > IConnectionFactory implementation found for connection URI: > activemq:tcp:/carbon:61616 > at Apache.NMS.NMSConnectionFactory.CreateConnectionFactory (System.Uri > uriProvider, System.Object[] constructorParams) [0x0002f] in > /home/me/src/mono/activemq/src/main/csharp/NMSConnectionFactory.cs:115 > > I created a file called nmsprovider-activemq.config and it contains... > > > classFactory="Apache.NMS.ActiveMQ.ConnectionFactory"/> > The question is whether the Apache.NMS.ActiveMQ.dll file is located somewhere that can be found at runtime. The simplest thing to do is to forget about using the config file and just add a reference to the ActiveMQ Dll to you Monodevelop project so the file is copied into your build directory, obviously you should reference Apache.NMS.dll as well so that they are both in your build dir. > > I copied this file to bin/Debug, and inside MonoDevelop chose the "Build > Action/Embed as Resource" option. Actually, I'm not so much a .NET > developer type, so I'm largely unfamiliar with all things .NET and may be > making a novice's mistake. Will you provide advice? > > Devin > > On Mon, Aug 16, 2010 at 9:11 AM, Timothy Bish wrote: > > > On Mon, 2010-08-16 at 09:08 -0500, Devin Venable wrote: > > > Those are perfect. By the way, if you download zipped source for the > > latest > > > release (Apache.NMS-1.3.0-src.zip), those test files are not present. It > > > would be helpful to include them and to update the apache web site ( > > > http://activemq.apache.org/nms/examples.html) to show the examples also. > > > > Have a look in Apache.NMS.ActiveMQ-1.3.0-src.zip, that's where those > > tests would be packaged. Agree that the site needs more docs and > > samples, care to contribute? :) > > > > Regards > > > > > > > > > > On Mon, Aug 16, 2010 at 8:53 AM, Timothy Bish > > wrote: > > > > > > > On Mon, 2010-08-16 at 08:42 -0500, Devin Venable wrote: > > > > > I need to whip up some quick examples for some folks I work with who > > use > > > > the > > > > > .NET platform. Unfortunately, there are no short examples posted on > > the > > > > > site for .NET for either the ActiveMQ or STOMP client. > > > > > > > > > > http://activemq.apache.org/nms/examples.html > > > > > > > > > > > > > > > I've been working on extracting a simple example from the unit tests > > that > > > > > come with the source, but these examples use every known feature and > > tons > > > > of > > > > > helper classes. Can someone provide a quick 10 line or less producer > > > > > example for c#? > > > > > > > > Have you had a look at the samples in the NMS.ActiveMQ test dir: > > > > > > > > > > > > > > https://svn.apache.org/repos/asf/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMain.cs > > > > > > > > > > > > > > https://svn.apache.org/repos/asf/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/trunk/src/test/csharp/TestMainAsync.cs > > > > > > > > If those aren't enough let me know what else you need covered. > > > > > > > > Regards > > > > > > > > -- > > > > Tim Bish > > > > > > > > Open Source Integration: http://fusesource.com > > > > ActiveMQ in Action: http://www.manning.com/snyder/ > > > > > > > > Follow me on Twitter: http://twitter.com/tabish121 > > > > My Blog: http://timbish.blogspot.com/ > > > > > > > > > > > > > > > > > > -- > > Tim Bish > > > > Open Source Integration: http://fusesource.com > > ActiveMQ in Action: http://www.manning.com/snyder/ > > > > Follow me on Twitter: http://twitter.com/tabish121 > > My Blog: http://timbish.blogspot.com/ > > > > > >