Hi David,

On Fri, Dec 5, 2014 at 8:37 PM, David Collins <[email protected]> wrote:
> I have a sling event handler defined like so:
>
> @Component( metatype = true, immediate = true, label = "User Event Handler"
>  )
> @Service( value = EventHandler.class )
> @Properties( {
>             @Property( name = EventConstants.EVENT_TOPIC, value = {
> SlingConstants.TOPIC_RESOURCE_ADDED, SlingConstants.TOPIC_RESOURCE_CHANGED
> }, propertyPrivate = true ),
>             @Property( name = EventConstants.EVENT_FILTER, value =
> "(path=/some/users/path/*)", propertyPrivate = true ) } )
>
> public class UserEventHandler implements EventHandler {
>
>     public void handleEvent( org.osgi.service.event.Event event ) {
>     // handler code here
>     }
>
> }
>
>
> The problem I'm running into is that it registers right away but after
> about an hour or two of being installed on the server it is no longer
> running.  The only way I am able to get it back is to unload the bundle and
> reinstall it.

Maybe your event handler has been blacklisted? See [1] for details (
search for blacklist ).

Robert

[1]: http://felix.apache.org/site/apache-felix-event-admin.html

>
>
> 1) Has anyone seen this before?
>
> 2) Is there something I could be looking for on why it would just
> arbitrarily stop working? (Some specific class to log?)

Reply via email to