Hm, should work, at least on 2.0 / trunk.

What version of GeoServer?

-Arne


Francesco Izzi wrote:
> My costructor is:
>
> public XMPPCatalogListener(Catalog cat) {
>         this.cat = cat;
>         cat.addListener(this);
>         log.info <http://log.info>("XMPPCatalogListener registered 
> with catalog ----------------------------------");
>     }
>
> 2009/7/14 Arne Kepp <[email protected] <mailto:[email protected]>>
>
>     Are you registering your class as a catalog listener ?
>
>     I.e. add this to the bottom of your XMPPCatalogListener constructor:
>
>     catalog.addListener(this);
>
>     -Arne
>
>     Francesco Izzi wrote:
>
>         hello, I'm writing a small module to announce the changes in
>         the catalog to a xmpp server I wrote a class that implements
>         CatalogListener, the method that is run is just reloaded (),
>         methods handleAddEvent, handleModifyEvent and
>         handleRemoveEvent are never executed.
>
>         The class is http://pastebin.com/m2f0143b0
>
>         my applicationContext.xml is :
>
>         <?xml version="1.0" encoding="UTF-8"?>
>         <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
>         "http://www.springframework.org/dtd/spring-beans.dtd";>
>         <beans>
>            <bean id="xmppCatalogListener"
>         class="org.geoserver.xmpp.XMPPCatalogListener">
>                <constructor-arg type="org.geoserver.catalog.Catalog"
>                    ref="rawCatalog" />
>            </bean>
>         </beans>
>
>         when I add a layer in Geoserver, I had expected that the
>         handleAddEvent method was executed, but does not happen ever
>
>
>         something wrong?
>
>         my geoserver log : http://pastebin.com/m6ea0a265
>
>
>         Thanks,
>
>
>         -- 
>         Francesco Izzi
>         CNR - IMAA
>         geoSDI - NSDI
>         Responsabile Sviluppo Software
>
>         C.da S. Loja
>         85050  Tito Scalo - POTENZA (PZ)
>         Italia
>
>         phone: +39 0971427305
>         fax:      +39 0971 427271
>         mob:    +39 3402640314
>         mail:     [email protected]
>         <mailto:[email protected]>
>         <mailto:[email protected]
>         <mailto:[email protected]>>
>
>         skype:  neofx8080
>
>         web:     http://www.geosdi.org
>
>
>         
> ------------------------------------------------------------------------
>
>         
> ------------------------------------------------------------------------------
>         Enter the BlackBerry Developer Challenge  This is your chance
>         to win up to $100,000 in prizes! For a limited time, vendors
>         submitting new applications to BlackBerry App World(TM) will have
>         the opportunity to enter the BlackBerry Developer Challenge.
>         See full prize  details at: http://p.sf.net/sfu/Challenge
>         
> ------------------------------------------------------------------------
>
>         _______________________________________________
>         Geoserver-devel mailing list
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>          
>
>
>
>     -- 
>     Arne Kepp
>     OpenGeo - http://opengeo.org
>     Expert service straight from the developers
>
>
>
>
> -- 
> Francesco Izzi
> CNR - IMAA
> geoSDI - NSDI
> Responsabile Sviluppo Software
>
> C.da S. Loja
> 85050  Tito Scalo - POTENZA (PZ)
> Italia
>
> phone: +39 0971427305
> fax:      +39 0971 427271
> mob:    +39 3402640314
> mail:     [email protected] <mailto:[email protected]>
> skype:  neofx8080
>
> web:     http://www.geosdi.org
>
>


-- 
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to