Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5E0D8200AF8 for ; Thu, 5 May 2016 09:29:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5CB6A160A03; Thu, 5 May 2016 07:29:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A410C160A02 for ; Thu, 5 May 2016 09:29:25 +0200 (CEST) Received: (qmail 7986 invoked by uid 500); 5 May 2016 07:29:24 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 7974 invoked by uid 99); 5 May 2016 07:29:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2016 07:29:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2D227C206E for ; Thu, 5 May 2016 07:29:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_COUK=1.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=haywood-associates-co-uk.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LjE7M6DtnFP7 for ; Thu, 5 May 2016 07:29:21 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 1ED065F2F2 for ; Thu, 5 May 2016 07:29:20 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id j8so86345385lfd.2 for ; Thu, 05 May 2016 00:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=haywood-associates-co-uk.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=rHA6SKNmzSDD/1FN6yZUVYxMwBxLEX1YpO4le4xX8dA=; b=LsAfGl3ArtIyjdzUpXQo8qi+kwyO8bCfMa/gKT1ZX+l8VB+tONdoXHOQSerGr9JhrQ N+xHfx4z69YpQx5IAw7Jp/YxJyhgyuwDbwhKLvT3NqnfHwGxMeCLpBQrwMLcekXjUQ9b OvmwD9FWq+Tgal+0sqtxGOBuY0IVnnl0sN0dDC8a5XH4jrr/petLGoIlf82QehXpj6dz BhRe8yPJV0CkAoG/w8Xnq5q3WDqrY7Pl4IGOLfC5cwp/RAFp/rny5P9q+PCdKe94AcEG uGqii84rgWM9eKqmHm+X+Tdv80QFoncc+e1yIXHnLFOG29TVdtr+qVV1pDcjPZXVjeue a/Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=rHA6SKNmzSDD/1FN6yZUVYxMwBxLEX1YpO4le4xX8dA=; b=dsa9m3Ya159hu2sd4IwTeuH6WX4R/Y1eRR48TnCEXCzJq402xV+PenpwHHZZy8af4G zOjIdCRPSWWmNNAq3mOtkDH1nIRJNGDUha+ARqa+KfAyDbMdcFYgZgy9zLUYk6TYFC0E Rybr8gkKMQ+4yk7k9rtfjCkfRavMFPX0fB9wnms1KCsmEaDlBFWLxSZsUs3x4BT5esFD u7RxkIWxN4iVSiv8rNVB60yMNKSif8Wn0WiqeaPJalcrdaGZdbyj/G9OZhts8TDR8jbs 0BB0bzkOxx3I5Cql55ANgU7DR6y6GIjwosbrgSTZ49L/uPLKcaYDf+QfclpgTn+ULNXY PGHA== X-Gm-Message-State: AOPr4FU0rHvTTYkIxgoElq5IAYPnZ3htsFaZD7DAS07OaLZ9UbZQeSLvtBf/49mSDS+4BqWy/h81lcvl7iMyHQ== MIME-Version: 1.0 X-Received: by 10.25.162.69 with SMTP id l66mr5358368lfe.43.1462433360509; Thu, 05 May 2016 00:29:20 -0700 (PDT) Received: by 10.25.15.165 with HTTP; Thu, 5 May 2016 00:29:20 -0700 (PDT) X-Originating-IP: [79.140.223.2] Received: by 10.25.15.165 with HTTP; Thu, 5 May 2016 00:29:20 -0700 (PDT) In-Reply-To: References: <57236246.3070807@pocos.nl> <57236774.4090703@pocos.nl> <57273E83.6020905@pocos.nl> <572856E3.2070701@pocos.nl> <5729B62C.7070208@pocos.nl> <5729FC7C.20802@pocos.nl> Date: Thu, 5 May 2016 08:29:20 +0100 Message-ID: Subject: Re: Starting app with AppManifest (1.12.1) From: Dan Haywood To: users Content-Type: multipart/alternative; boundary=001a114012a0f616250532134ca5 archived-at: Thu, 05 May 2016 07:29:26 -0000 --001a114012a0f616250532134ca5 Content-Type: text/plain; charset=UTF-8 Hi Erik, If the AppManifest is present then it overrides/replaces the isis.services key in the configuration file. The general idea is to provide an empty module class at the base package of your app. Include this class in the list returned from getModules(). The framework uses the package of this module class to identify where in the classpath to go searching. You'll see that all the isisaddons use this approach. The framework itself uses this for the applib services, but there is also a hard coded list of additional packages that are for internally implemented services. From memory that hardcoded last is a constant field of AppManifest interface. In addition to all that, you can also specify additional service classes in the AppManifest 's getServices() method. The intended usage of this is for integ tests and demos to subclass the app' s normal production AppManifest, eg to stub out/mock external services. The solution to your bootstrap problem is a bit of lateral thinking... just define a module for your quartz stuff, but in the app module. So long as that module's package matches (or is in a parent package of) the service you want to pick up over in the webapp module, you should be good. HTH Dan On 4 May 2016 2:43 pm, "Erik de Hair" wrote: Hi again :-) Something's not clear to me. Since using the AppManifest some services are not automatically registered. After adding them to the AppManifest they were. Other services though, were registered like in older Apache Isis versions. Did anything change? I can't find it in the docs/release/migration notes. And I have a service in the webapp for registering Quartz-jobs (dependencies only added in the webapp). Because of the above issue it's not registered and doesn't show up in the main menu. The app-module doesn't have a dependency on the web app (and it can't be added because of circular annotation processing problems). How can I add a service from the webapp to the AppManifest or at least make sure it is loaded? Erik --001a114012a0f616250532134ca5--