This is an automated email from the ASF dual-hosted git repository.

cschneider pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git


The following commit(s) were added to refs/heads/master by this push:
     new 16eda73  SLING-8859 - Fix double JournalAvailable service
16eda73 is described below

commit 16eda73a9e480ffc410b3f1513d3d6319aa9fb94
Author: Christian Schneider <[email protected]>
AuthorDate: Tue Nov 26 16:31:24 2019 +0100

    SLING-8859 - Fix double JournalAvailable service
---
 .../distribution/journal/impl/shared/JournalAvailableChecker.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sling/distribution/journal/impl/shared/JournalAvailableChecker.java
 
b/src/main/java/org/apache/sling/distribution/journal/impl/shared/JournalAvailableChecker.java
index c7397c0..5a401c3 100644
--- 
a/src/main/java/org/apache/sling/distribution/journal/impl/shared/JournalAvailableChecker.java
+++ 
b/src/main/java/org/apache/sling/distribution/journal/impl/shared/JournalAvailableChecker.java
@@ -42,7 +42,9 @@ import org.osgi.service.event.EventHandler;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-@Component( 
+@Component(
+        immediate = true,
+        service = EventHandler.class,
         property = EventConstants.EVENT_TOPIC + "=" + 
ExceptionEventSender.ERROR_TOPIC
 )
 public class JournalAvailableChecker implements JournalAvailable, EventHandler 
{

Reply via email to