Re: Versioning services

2018-02-12 Thread colinc
Thanks for this. I'll keep an eye on that ticket - it seems to be exactly
what we are looking for.

In the meantime, we think we have a work-around. Does the following sound
viable, or do you think it might it cause problems?

* Create a custom intercepting ClassLoader
* Start Ignite by directly calling IgnitionEx.start(URL springCfgUrl,
@Nullable ClassLoader ldr)
* Create the service instance using the new ClassLoader and deploy the
service as a node singleton.
* Ignite re-instantiates the service - but this is now handled by our
intercepting ClassLoader too. The ClassLoader ensures that the correct
version of the service class is loaded from the appropriate jar.

For the moment, we will use the service name to distinguish between versions
- though, as per the jira ticket, an explicit version number would be
welcome too.

Regards,
Colin.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Versioning services

2018-02-09 Thread vkulichenko
Colin,

Unfortunately this is not possible at the moment, you need to restart nodes
to change service implementation. There is a feature request for improving
this: https://issues.apache.org/jira/browse/IGNITE-6069

-Val



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/