From users-return-6013-archive-asf-public=cust-asf.ponee.io@isis.apache.org Wed May 9 12:15:10 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 51B91180649 for ; Wed, 9 May 2018 12:15:10 +0200 (CEST) Received: (qmail 23530 invoked by uid 500); 9 May 2018 10:15:08 -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 23497 invoked by uid 99); 9 May 2018 10:15:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2018 10:15:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D593D1807CB for ; Wed, 9 May 2018 10:15:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.011 X-Spam-Level: X-Spam-Status: No, score=-0.011 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=smtp.pocos.nl Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id kERG9vPBgnaL for ; Wed, 9 May 2018 10:15:04 +0000 (UTC) Received: from smtp1.pocos.nl (smtp1.pocos.nl [109.235.32.66]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 213A55F1ED for ; Wed, 9 May 2018 10:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtp.pocos.nl; s=smtppocosnl0; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:From:To; bh=vBw5PdKBqKqM+L2W/0erLzjlWMWRFCQo5SyPI3UepKY=; b=xWK66qHG4K7mpn85hFh4lFegNGkqLFnbrOHum1rbsYItoaFqs91AKuuP4ropaXn8LNpIwUdScrzrWxHk3mkpXaPwOrA/BPLAkM0AgOTZQCt9ZI0nZFmbCB1ZwJA8vaesgdnv/Wb9Za5GH8vJ/cR3/0FIKjTzgzruL2tR+9FwR+/DIVl7URIt0nFwtjMqwjYStkeZDPmgCq5vQB7jXfWBou7adEvVelo3gwzC/iVlzEl7waODLVy/4xEMfMZh6lAL5+BjT36/RgRf74s5x3HM1otO5gARRCziiF9AKePwyq5Il9AsvldxSkf3dha3sbwkPREML2k6Se9srmG7vdWtSQ==; Received: from [109.235.34.226] (helo=[10.0.2.45]) by smtp1.pocos.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1fGM7e-000108-1r for users@isis.apache.org; Wed, 09 May 2018 12:14:58 +0200 To: "users@isis.apache.org" From: Erik de Hair Subject: Expected multiple ObjectUpdatedEvents but only 1 catched Message-ID: <2f1a2741-48d6-4b03-e524-12e0abc4afa3@pocos.nl> Date: Wed, 9 May 2018 12:14:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl Hi, For the following scenario I expected an UpdatedEvent for each entity being updated but I only receive one for the last updated entity. Is that by design? Example classes: @PersistenceCapable(table = "entities") @DomainObject(updatedLifecycleEvent = Entity.UpdatedEvent.class) public class Entity {     public static class UpdatedEvent extends org.apache.isis.applib.services.eventbus.ObjectUpdatedEvent{ }     @Column(name = "activated", allowsNull = "false")     @Getter @Setter     private boolean activated;     public void activate(){         setActivated(true);     } } @DomainService(nature=NatureOfService.DOMAIN) public class EntitySubscriber extends AbstractSubscriber {     @Subscribe     public void on(Entity.UpdatedEvent ev) {         // do something     } } @DomainService(nature = NatureOfService.DOMAIN) public class EntityService {     public void activateAll(){         List entities = ;         for (Entity entity : entities) {             entity.activate();         }     } } Thanks, Erik