Return-Path: X-Original-To: apmail-batchee-dev-archive@minotaur.apache.org Delivered-To: apmail-batchee-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DA70E18F4C for ; Tue, 23 Feb 2016 11:32:45 +0000 (UTC) Received: (qmail 41451 invoked by uid 500); 23 Feb 2016 11:32:45 -0000 Delivered-To: apmail-batchee-dev-archive@batchee.apache.org Received: (qmail 41421 invoked by uid 500); 23 Feb 2016 11:32:45 -0000 Mailing-List: contact dev-help@batchee.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@batchee.incubator.apache.org Delivered-To: mailing list dev@batchee.incubator.apache.org Received: (qmail 41409 invoked by uid 99); 23 Feb 2016 11:32:45 -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; Tue, 23 Feb 2016 11:32:45 +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 10BFAC1033 for ; Tue, 23 Feb 2016 11:32:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, 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=gmail.com Received: from mx1-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 99sUrrHlqy17 for ; Tue, 23 Feb 2016 11:32:43 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 56EFA5FAC6 for ; Tue, 23 Feb 2016 11:32:42 +0000 (UTC) Received: by mail-lb0-f181.google.com with SMTP id x4so99766036lbm.0 for ; Tue, 23 Feb 2016 03:32:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=6vxvSk/+xYy00fFtSrRkcDNtKOC3CSAbkdNaIBPkLRo=; b=byTlQUMMlLDq0ZjsyR14pbWIfAUQnF7eNkGT6/lTve1GiO/ImR53PPmaT6gqVBOCAM osFrMu2hLcU4FZRvTV+RUQUlfkNpjERTuC6d85HDn67JFrf9UQw8Br9DoqKkYuk+9nOR cq+rI75PX3e7+UbLI8eH177Uyu/6XDiOLqea1TJj1wKXSbD3HsvlPFt1bN6iD5rhpDde WdW8tvpisrhIIXDe02KV+7EyKd+cqx50ng3bxeObf2tC4V2TYDt0mnD0LAifLnEu8Wk2 K6V2yif+HvBATqC8SXBOdRzlHdBdEgYLjuoHcBTV9msrLYmSHLbpnBalwIuxy7jNOhkN 6mCw== 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:from:date :message-id:subject:to:content-type; bh=6vxvSk/+xYy00fFtSrRkcDNtKOC3CSAbkdNaIBPkLRo=; b=jW1chdwJ/YF3QC9RPOwmNFs4zonigOtTbucH0Z5G0LO7Kx1cCNzRsEmy5nkE95+FTg vObTWM+TuQKxdlhEeAE4tWWGRAjDSj3l9dhz7ly9V2Tfd/xz62z1/i9Nya1bZ5ioPJmB sqd0bUChgrqP029DxDo44urNblEkFrtdbMvXspGqtJzflfR+clmKG+q1320F2VqbKdO9 n/DdQqwvUXrgbGUNEhZdx4pQ0CHN9L5iv3cpvAurhWmhNQl/q8VarZeOTF3VoG/qDcDV kFmbMhxr56Z4R1udOPpxTeIiTMWwdYgFfqqC/HqUkn9bTrgV8BSpixccwVjRVpv59iwh 6x7w== X-Gm-Message-State: AG10YORcWCWYkgB+5I8bvhb62Q1jxVp8dbwMhVbmT8m4DAwY/lIc3wZbnabI5CRGX5bOQLyugK7wCZ07jo6lkg== X-Received: by 10.112.199.138 with SMTP id jk10mr6002647lbc.91.1456226861781; Tue, 23 Feb 2016 03:27:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.201.35 with HTTP; Tue, 23 Feb 2016 03:27:22 -0800 (PST) In-Reply-To: <63BC48DB-F43F-4743-A256-A64B96EC667A@gmail.com> References: <63BC48DB-F43F-4743-A256-A64B96EC667A@gmail.com> From: Romain Manni-Bucau Date: Tue, 23 Feb 2016 12:27:22 +0100 Message-ID: Subject: Re: JobLevel Listeners To: "dev@batchee.incubator.apache.org" Content-Type: multipart/alternative; boundary=001a11c3358acf1989052c6e3cee --001a11c3358acf1989052c6e3cee Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable org.apache.batchee.step.listeners.before and org.apache.batchee.step.listeners.after? Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber 2016-02-23 12:20 GMT+01:00 Reinhard Sandtner : > Hey folks, > > i=E2=80=99m currently struggling with listeners ;-) > > i have a batch-job with various numbers of steps=E2=80=A6 > i need a stepScopeListener and an itemWriteListener for all steps in this > job > > wouldn=E2=80=99t it be a good idea to be able to do something like > > > > a thread local =E2=80=94> > ConstraintViolationException printed with the right message =E2=80=94> > > > > =E2=80=A6. > > > > =E2=80=A6. > > > > =E2=80=A6. > > > > i know the spec says only JobListeners can be specified as a job level > listener but we could add a property to enable this feature. > and of course i know its possibly to specify a listener via > batchee.properties globally for all batch jobs. but i need it only for a > number of batch jobs and not globally. > > with the current implementation i=E2=80=99ve to define my listener separa= tely for > each step=E2=80=A6 it=E2=80=99s not that bad but define my listeners once= would be easier > in this case. > > wdyt? > > lg > reini --001a11c3358acf1989052c6e3cee--