1 Reply Latest reply on Sep 18, 2007 1:51 PM by Manik Surtani

    How to configure the cache listener in the xml configuration

    Jorge Morales Master

      I've searched the forums and saw an old response from Manik that states this is not possible.
      Now I have two questions.

      Why this is not a feature? I think it is very desired for a lot of people.
      How should I register my listeners, and when. I'm using some treeCaches in a JBoss server Environment, and I want to act on some nodes being created. I store configuration in cache, and as these configuration changes, I want to fire some MBean notifications, for reconfiguring some parts of the app. Also, this has to be done in every node of my cluster.

      Thanks,

        • 1. Re: How to configure the cache listener in the xml configura
          Manik Surtani Master

           

          "jorgemoralespou_2" wrote:

          Why this is not a feature? I think it is very desired for a lot of people.


          Want to contribute it as a feature then? ;)

          Otherwise, create a JIRA for this, as a feature request, and vote on it. I'll see when we can schedule it.

          "jorgemoralespou_2" wrote:

          How should I register my listeners, and when. I'm using some treeCaches in a JBoss server Environment, and I want to act on some nodes being created. I store configuration in cache, and as these configuration changes, I want to fire some MBean notifications, for reconfiguring some parts of the app. Also, this has to be done in every node of my cluster.


          Use the listener registration API. See the user guide for this. If this is in a webapp, a startup servlet may be a good place to do this. You will have to copy this code on to all servers in your cluster.