1 Reply Latest reply on Feb 26, 2007 9:48 AM by manik

    How can i write a listener for a node

    mvrck1208


      Hi,

       

      I am using JBossCache1.4X JBossAS4.0.5GA

       

      please can any one tell me how to craete a listener for a node in a TreeCache.(small code please).and how to notify when a change takes place in that node.

        • 1. Re: How can i write a listener for a node
          manik

          You can only write listeners for the entire cache.

          You could filter events based on Fqn though, since the Fqn is passed into the callback, and discard events for Fqns you aren't interested in. Read the user guide for examples on this.

          In a later release (2.1.0) we may add support for adding listeners to specific regions.