Skip to content

Instantly share code, notes, and snippets.

@iocanel
Created March 5, 2012 17:06
Show Gist options
  • Save iocanel/1979397 to your computer and use it in GitHub Desktop.
Save iocanel/1979397 to your computer and use it in GitHub Desktop.
Exporting Hazelcast as an OSGi service via spring-dm
<bean class="com.hazelcast.core.Hazelcast" destroy-method="shutdown" factory-method="newHazelcastInstance" id="hazelcast">
<constructor-arg ref="config"/>
</bean>
<bean class="com.hazelcast.config.Config" id="config">
<property name="groupConfig" ref="groupConfig"/>
</bean>
<bean class="com.hazelcast.config.GroupConfig" id="groupConfig">
<property name="name">karaf</property>
<property name="password">pwd</property>
</bean>
<osgi:service interface="com.hazelcast.core.HazelcastInstance" ref="hazelcast"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment