ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamal C <kamaltar...@gmail.com>
Subject Re: Ignite Services: How to preserve value of Local variables ?
Date Wed, 13 Apr 2016 02:05:56 GMT
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 ?


On 13-Apr-2016 4:47 AM, "vkulichenko" <valentin.kulichenko@gmail.com> 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
> VM and will not be serialized.
> -Val
> --
> View this message in context:
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

View raw message