You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2023/01/11 08:33:51 UTC

[karaf-minho] branch main updated: [38] minho-rest service starts afterr minho-http

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

jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/karaf-minho.git


The following commit(s) were added to refs/heads/main by this push:
     new 6ab1a99  [38] minho-rest service starts afterr minho-http
     new 8966f46  Merge pull request #39 from jbonofre/38
6ab1a99 is described below

commit 6ab1a9931bca7d359c8fbc105a747f93811ca4e4
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Tue Jan 10 15:29:17 2023 +0100

    [38] minho-rest service starts afterr minho-http
---
 .../java/org/apache/karaf/minho/rest/jersey/JerseyRestService.java   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/services/minho-rest/src/main/java/org/apache/karaf/minho/rest/jersey/JerseyRestService.java b/services/minho-rest/src/main/java/org/apache/karaf/minho/rest/jersey/JerseyRestService.java
index 1940fe2..22af79a 100644
--- a/services/minho-rest/src/main/java/org/apache/karaf/minho/rest/jersey/JerseyRestService.java
+++ b/services/minho-rest/src/main/java/org/apache/karaf/minho/rest/jersey/JerseyRestService.java
@@ -39,6 +39,11 @@ public class JerseyRestService implements Service {
         return "minho-rest-service";
     }
 
+    @Override
+    public int priority() {
+        return Service.DEFAULT_PRIORITY + 1;
+    }
+
     @Override
     public void onRegister(ServiceRegistry serviceRegistry) throws Exception {
         ConfigService config = serviceRegistry.get(ConfigService.class);