Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 12288 invoked from network); 14 Jun 2010 18:47:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jun 2010 18:47:54 -0000 Received: (qmail 56553 invoked by uid 500); 14 Jun 2010 18:47:54 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 56504 invoked by uid 500); 14 Jun 2010 18:47:53 -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 56496 invoked by uid 99); 14 Jun 2010 18:47:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 18:47:53 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=AWL,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.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 18:47:48 +0000 Received: by vws6 with SMTP id 6so1162225vws.2 for ; Mon, 14 Jun 2010 11:47:27 -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=4NiOCAuaC+9eMY9m84+eYv3tVzH8WBZvG0tvBUddJUE=; b=boxkUVeIwAPlk7n7bffxLfd3FpaQkbSHpzObdH/p/+/r5awBirDAr92/VyE/020SuX C4Gjqyc+HJjBfriwCYXyd4r3oD62k6iunTOzrymuthXBmu5XoG2pt9X1rJdwuUpUGpUi toOT7dwwgRPjWtYkHTC6FtyDaiiBIbFp8l4kQ= 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=olkKv7U3aNnbrMedAO1Amd0ySGeLNmTeI/VH48anxoWkmfxnc0YHwM/fO9e3oazhQm +Ge0cHaa5kcgOiQaHh9GqgQqkZ1BSX4Sjfehwci/XOcVYgOCsVYDhLLtIh0rk1sUPr2J fqEIKlhHusifu8thzpyDNJ4w5N1jtYvBRDX0Y= Received: by 10.220.89.199 with SMTP id f7mr3114151vcm.209.1276541247668; Mon, 14 Jun 2010 11:47:27 -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 11sm4632217vcp.45.2010.06.14.11.47.25 (version=SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 11:47:26 -0700 (PDT) Subject: Re: activemq-cpp and solutions written in C From: Timothy Bish To: users@activemq.apache.org In-Reply-To: <28883074.post@talk.nabble.com> References: <28882842.post@talk.nabble.com> <1276539641.2597.9.camel@localhost> <28883074.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 14 Jun 2010 14:47:24 -0400 Message-ID: <1276541244.2597.18.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit On Mon, 2010-06-14 at 11:30 -0700, ararog wrote: > I strongly considering to write the C version by getting some inspiration on > CPP version, what you think? > > Not sure if I should write it from scratch by reading the spec or get some > help by reading activemq-cpp code. Well you could start from scratch and try to write a very small tight C library, but it depends on the feature set you eventually want have in the C client. ActiveMQ-CPP has come a long way over the years and has or will have support for things like failover and SSL connectivity along with a large array of unit tests and integration tests, so you'd be starting all over if you went the route of writing a pure C client. It seems like it shouldn't be to hard to write a wrapper library in C to expose the features of the CMS API to C clients in a user friendly way, I even created a module in the ActiveMQ-CPP svn base called ActiveMQ-C to do just that but I just haven't had the time to work on it. If you wanted to take a crack at it I'd be glad to test builds and commit patches to svn along those lines. Reusing what already exists in the C++ client seems like the smart thing to me but I can see the argument for starting from scratch on a C client for the C purists out there. Either way I'd be glad to help out when I can and answer questions if you need help. 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/