Return-Path: X-Original-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-celix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73FD51026B for ; Mon, 16 Sep 2013 08:01:35 +0000 (UTC) Received: (qmail 27547 invoked by uid 500); 16 Sep 2013 08:01:35 -0000 Delivered-To: apmail-incubator-celix-dev-archive@incubator.apache.org Received: (qmail 27443 invoked by uid 500); 16 Sep 2013 08:01:29 -0000 Mailing-List: contact celix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: celix-dev@incubator.apache.org Delivered-To: mailing list celix-dev@incubator.apache.org Received: (qmail 27389 invoked by uid 99); 16 Sep 2013 08:01:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Sep 2013 08:01:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of a.broekhuis@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Sep 2013 08:01:18 +0000 Received: by mail-la0-f48.google.com with SMTP id er20so2809273lab.35 for ; Mon, 16 Sep 2013 01:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Khin8iiRnd5i5eaxW6l4Fs9P3WFbKU79SmqrgRi9oq8=; b=Y0NdGXToi2NfnlenpusKe5xRfxhXDxb98AooL7SQv5tOBtb5mwyjjg20Xe3azSByqN wKrrmtQSW7PzklXXdEuZV5/+3i3DahJBWCbE7QSEvIElA/RNGBHAk8NFJtCpUm8Z2ORs TWC2l9sKbdN3qH6qoxGr4IvGbPJ6k0D/AMvJKpsGEicDnnlpS90qen9Wjw9y7bXiPft5 8WAqzkMCL0g56pf1QXdNHbkDUX64I2iaBzf5weBmaS/g65SdGJOyZnEQl3JPt+rtIHpe lZ1iXmkdcJQ+2oW/9ZgCqcDEElUUIgoOsNqlfBqkG2ZefKAKviqgp9dO+/3FRijeYz6x X22Q== MIME-Version: 1.0 X-Received: by 10.152.19.1 with SMTP id a1mr23376738lae.8.1379318457705; Mon, 16 Sep 2013 01:00:57 -0700 (PDT) Received: by 10.112.180.98 with HTTP; Mon, 16 Sep 2013 01:00:57 -0700 (PDT) In-Reply-To: <52356979.1040002@sundevil.de> References: <5213C63A.1050002@gmail.com> <52150460.7070606@gmail.com> <52356979.1040002@sundevil.de> Date: Mon, 16 Sep 2013 10:00:57 +0200 Message-ID: Subject: Re: Remote service using shared mem From: Alexander Broekhuis To: celix-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=089e01493e42b4295204e67b9a3e X-Virus-Checked: Checked by ClamAV on apache.org --089e01493e42b4295204e67b9a3e Content-Type: text/plain; charset=ISO-8859-1 Hi, I just created JIRA issue CELIX-81, including a patch which adds several > components allowing CELIX to use Shared Memory for remote services > (discovery_shm, remote_service_admin_shm and example_proxy_shm). Besides, > two new deployment targets are added, which can be used to locally test the > shared memory implementation using the already existing example_service. > Thanks for this work! If Pepijn hasn't started working on this, I will test and add it to the build tomorrow. > > Netstring support (see JIRA issue CELIX-80 for according patch) is > required to get the this shm implementation working. Out of curiosity and for compatibility with Java, is there also some java support for it? I am still interested in writing a java version as well. Maybe you could provide some technical details on the working of it. > Also note that shared memory segments or semaphores might be left in the > system and needs to be removed manually (see ipcs, ipcrm) when CELIX does > not shutdown as expected. > Did you use APR for this? Or doesn't APR support semaphores etc? I haven't looked at it at all, but using APR would be great. Also, does the code check if there is anything left when starting again? Either way, making Celix robust so that is doesn't shutdown as expected is the best solution ;). -- Met vriendelijke groet, Alexander Broekhuis --089e01493e42b4295204e67b9a3e--