Skip to content

Instantly share code, notes, and snippets.

@iocanel
Created March 5, 2012 17:17
Show Gist options
  • Save iocanel/1979562 to your computer and use it in GitHub Desktop.
Save iocanel/1979562 to your computer and use it in GitHub Desktop.
Registering a Hazelcast MessageListener
<reference id="instance" interface="com.hazelcast.core.HazelcastInstance"/>
<bean factory-method="getTopic" factory-ref="instance" id="echoTopic">
<argument value="ECHO"/>
</bean>
<bean class="net.iocanel.karaf.hazelcast.shell.EchoListener" id="listener">
<property name="topic" ref="echoTopic"/>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment