Return-Path: X-Original-To: apmail-deltaspike-users-archive@www.apache.org Delivered-To: apmail-deltaspike-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9EC8496C6 for ; Tue, 16 Dec 2014 13:19:12 +0000 (UTC) Received: (qmail 83665 invoked by uid 500); 16 Dec 2014 13:19:12 -0000 Delivered-To: apmail-deltaspike-users-archive@deltaspike.apache.org Received: (qmail 83627 invoked by uid 500); 16 Dec 2014 13:19:12 -0000 Mailing-List: contact users-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@deltaspike.apache.org Delivered-To: mailing list users@deltaspike.apache.org Received: (qmail 83613 invoked by uid 99); 16 Dec 2014 13:19:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 13:19:11 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thomas.hug@gmail.com designates 209.85.212.176 as permitted sender) Received: from [209.85.212.176] (HELO mail-wi0-f176.google.com) (209.85.212.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 13:18:45 +0000 Received: by mail-wi0-f176.google.com with SMTP id ex7so12188701wid.9 for ; Tue, 16 Dec 2014 05:17:15 -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=TZTBx3SgEyHc6NgqSr2jC3fZV1fEnSSfhFZ2EnWFDhw=; b=0+YwGEwes8RwlSOlHA7gx02HZQpyniJpK5fAHgGXS5uy++RlvNAn559muiCwigFqIu fgU2HjpPnf8n8hIcIVCELEpKoGFDnE25pwzgevUfYXfaJWqMp4COdCk13PgknT/eD//k jYoDxjC5OhI0AUx3ef4EcjeXS4MwS1pdIPtbrAopRoUDpivtdSutNNpg36ohJTFLPzgv xxmw7BygHneH9qQsErhr13t0SHJswSTNU7y1YnIcNZJ2APMb/qtMasHWduYo5C5pjQCF xKRU51z+JNbLhqkCrrQlxDqjwHD8dY9bvG1bh/HP7Ky4mCQuJJ4GF7D846UVgmXHpFGz M9QQ== X-Received: by 10.194.88.169 with SMTP id bh9mr59492366wjb.99.1418735834549; Tue, 16 Dec 2014 05:17:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.106.135 with HTTP; Tue, 16 Dec 2014 05:16:54 -0800 (PST) In-Reply-To: <74dc19cc8dda40a1abf83e73a84ccac6@calypso.ctp.com> References: <548F650E.1030208@aon.at> <74dc19cc8dda40a1abf83e73a84ccac6@calypso.ctp.com> From: Thomas Hug Date: Tue, 16 Dec 2014 14:16:54 +0100 Message-ID: Subject: Re: Data module and serializability in cluster w/ distributable session To: "users@deltaspike.apache.org" Content-Type: multipart/alternative; boundary=089e010d84a272d672050a552d2a X-Virus-Checked: Checked by ClamAV on apache.org --089e010d84a272d672050a552d2a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Officially declaring this the "Thomas" thread ;-) Agree with Thomas that going for AppScope is probably the simplest workaround for now. I remember some efforts for serialization (as OWB complained for some cases) but overall it does not work well when you have to inject EMs or use Instance<>. Fixing this properly might require a major refactoring. On Tue, Dec 16, 2014 at 8:17 AM, Thomas Andraschko < andraschko.thomas@gmail.com> wrote: > > Hi, > > i would make your repositories AppScoped. > Unfortunately AppScoped doesn't work for abstract repositories :/ I still > have the same problem -> > https://issues.apache.org/jira/browse/DELTASPIKE-647 > > > 2014-12-15 23:47 GMT+01:00 Thomas Fr=C3=BChbeck : > > > > Hi, > > > > we are integrating Data module of DS as vital part of our persistence > > layer, but unfortunately Repositories are not Serializable, so that SFS= B > or > > SessionScoped beans with Dependent scoped dependencies on Repositories > will > > fail in cluster configurations. > > > > Due to some recent overuse of scoped dependencies we would like to > refrain > > from again starting to scope vital infrastructure. > > > > Can you give some advice, which way to solve this problem? > > > > Many thanks for your dedication to DeltaSpike and your help, > > Thomas > > > --089e010d84a272d672050a552d2a--