This discussion is archived
2 Replies Latest reply: Jan 25, 2013 3:08 PM by user738616 RSS

More than one listener per cluster

965779 Newbie
Currently Being Moderated
Is it possible to have more than 1 server running the listener in the same cluster? Currently our configuration is having one listener/cluster , is it possible to run multiple listeners ?
  • 1. Re: More than one listener per cluster
    Angel.Ruiz Newbie
    Currently Being Moderated
    Hi,

    you probably are looking at using Backing Map Listeners? Using BMLs with your partitioned cache services, a listener will run on each storage-enabled JVM/member.
    Events will only be dispatched once except in some cases.

    More info about how to use this type of listener here:

    http://docs.oracle.com/cd/E24290_01/coh.371/e22837/api_events.htm#BEIBIHGA

    Hope this helps.
  • 2. Re: More than one listener per cluster
    user738616 Pro
    Currently Being Moderated
    Hi,

    You can have as many listeners as you want by programatically attaching them to the cache.

    cache.addListener(..)

    Each of the nodes that will invoke the above code will receive the events.

    Cheers,
    _NJ                                                                                                                                                                                                                                                                                                                                                                                                                                               

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points