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