Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3706819BDD for ; Wed, 13 Apr 2016 02:06:00 +0000 (UTC) Received: (qmail 52383 invoked by uid 500); 13 Apr 2016 02:06:00 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 52331 invoked by uid 500); 13 Apr 2016 02:06:00 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 52313 invoked by uid 99); 13 Apr 2016 02:05:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 02:05:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 76A461A0618 for ; Wed, 13 Apr 2016 02:05:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FxqUCROBwOyz for ; Wed, 13 Apr 2016 02:05:57 +0000 (UTC) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 4B3CE5F1F0 for ; Wed, 13 Apr 2016 02:05:57 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id tz8so23961524obc.0 for ; Tue, 12 Apr 2016 19:05: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; bh=cQ7QUJjL3vvjMd0EljN+/rS5A3ukNE7InvZwMDU+AK8=; b=OCv8JS76ye/HMOC+O/YP7uQC1aQBuOgqWFpeYTToKQGyVIG+aJ04CbU868jVQHb++n sM5F629a21eDpTKwXsRBCZsNywQ9b08cVAhvzaDKV5MJ5l8iPPMjDnsQf8Sst2O0jlls 6Dx65W1SZolU4suFBTwzkTq/2GKpzB6UMSA8oGBL6aWPnUv9fOXEV+PlxNF0DFY3HQ6R OqpMDPsLZRN0jo5Mbfi3Q09LzpT7bczm6NqT85L83+YU//P8opaRCiRH5N5YkVOxYb6l s6kxAsyot2Vaqll7U+wNRia2WFD+dAWze3i2WVQqUEQNCChsxY639w9BDBYRpj+luWD3 om7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=cQ7QUJjL3vvjMd0EljN+/rS5A3ukNE7InvZwMDU+AK8=; b=a6naxt53TAXhPRjPwrBNBdb5xsDI0+i2BMRxJCx/qaCs6kVwFmuGsWCOyggkpeuNeN Uhs6+9FEL/0QTv0ALyPbJqe9IwNJLH0go8Q4TvBvYiQeEqVOOMw2+t5vB8sX5MP/OKi3 p+spVXuJYhXrEg7jvmGH80jYm14gRUKp22EnywjTcXwLsDjOeZ+UXfBBzTgUWFv0xs35 I0/U/BCSujiAqjbGKdu047IHuUTSwbVXd3DFFI5sjDCcu6XXZWKyDLSKsxzR+iHGxNPr rSERmx0vNcY9OfUgyLqBFNrwBf0S4lsKzCT8CUJ67at8T9/DedrN7fy2acVLjTKImbfl bQrw== X-Gm-Message-State: AOPr4FXQz7izgbyAQf1xIm/SwfFobjXdTuxRXzixUmU8A9bdd/VK6RMKi1J/iNe1xfSzseAQIqU8N205+91hSw== MIME-Version: 1.0 X-Received: by 10.182.24.104 with SMTP id t8mr3018574obf.1.1460513156632; Tue, 12 Apr 2016 19:05:56 -0700 (PDT) Received: by 10.202.77.147 with HTTP; Tue, 12 Apr 2016 19:05:56 -0700 (PDT) In-Reply-To: <1460502224142-4103.post@n6.nabble.com> References: <1460502224142-4103.post@n6.nabble.com> Date: Wed, 13 Apr 2016 07:35:56 +0530 Message-ID: Subject: Re: Ignite Services: How to preserve value of Local variables ? From: Kamal C To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=001a11c29c9ee4186a053054378e --001a11c29c9ee4186a053054378e Content-Type: text/plain; charset=UTF-8 Thanks for your response Val. Is service grid can be seen as a replacement for RMI? My existing legacy code provides RMI support for the external system to access it. I have a requirement to distribute the application by running it in more than one node. I'm looking for a way to provide the API Services. Is Service grid fits for this purpose ? --Kamal On 13-Apr-2016 4:47 AM, "vkulichenko" wrote: > > Hi Kamal, > > Service instance can be serialized during deployment on other nodes. In > general it's better to make services stateless. If state is required, use > IgniteCache instead. > > But your particular case you can simply make this field static. Since it > gets the value from a system property, it will properly initialized in each > VM and will not be serialized. > > -Val > > > > -- > View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Services-How-to-preserve-value-of-Local-variables-tp4094p4103.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. --001a11c29c9ee4186a053054378e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for your response Val.

Is service grid can b= e seen as a replacement for RMI?

My existing legacy code provides RM= I support for the external=C2=A0
system=C2=A0to access it. I have a req= uirement to distribute the=C2=A0
application by running it in mor= e than one node. I'm looking for=C2=A0
a way to provide the A= PI Services.=C2=A0

Is Service grid fits for this p= urpose ?

--Kamal




On= 13-Apr-2016 4:47 AM, "vkulichenko" <valentin.kulichenko@gmail.com> wrote:
>= ;
> Hi Kamal,
>
> Service instance can be serialized duri= ng deployment on other nodes. In
> general it's better to make se= rvices stateless. If state is required, use
> IgniteCache instead.>
> But your particular case you can simply make this field stati= c. Since it
> gets the value from a system property, it will properly= initialized in each
> VM and will not be serialized.
>
>= -Val
>
>
>
> --
> View this message in conte= xt: http://apache= -ignite-users.70518.x6.nabble.com/Ignite-Services-How-to-preserve-value-of-= Local-variables-tp4094p4103.html
> Sent from the Apache Ignite Us= ers mailing list archive at Nabble.com.
--001a11c29c9ee4186a053054378e--