Hi,

Can you check that hazelcast and cellar hazelcast bundles are started ?

karaf@root()> la|grep -i hazelcast
107 x Active   x  80 x 3.9.1                 x hazelcast
114 x Active   x  80 x 4.1.3                 x Apache Karaf :: Cellar :: 
Hazelcast

I can see the HazelcastInstance available in the service registry provided by 
Cellar Instance bundle:

bundle:services 114

Apache Karaf :: Cellar :: Hazelcast (114) provides:
---------------------------------------------------
...
[com.hazelcast.core.HazelcastInstance]
...

Regards
JB

> Le 22 avr. 2020 à 12:20, braus <[email protected]> a écrit :
> 
> Hello everyone,
> 
> I'm trying to get the HazelCastInstance on a karaf installation where I
> installed cellar.
> I try to get the HazelCastInstance like:
> 
>            BundleContext bc =
> FrameworkUtil.getBundle(thisclass.class).getBundleContext();
>            ServiceReference<HazelcastInstance> sr =
> bc.getServiceReference(HazelcastInstance.class);
>            HazelcastInstance hci = bc.getService(sr);
> 
> Unfortunately the service reference is null. I have two karaf's running
> which are connected to one another. Does anyone have an idea on how to get
> the HazelCastInstance?
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Reply via email to