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 CF9FD96DE for ; Tue, 16 Dec 2014 13:23:44 +0000 (UTC) Received: (qmail 94030 invoked by uid 500); 16 Dec 2014 13:23:44 -0000 Delivered-To: apmail-deltaspike-users-archive@deltaspike.apache.org Received: (qmail 93993 invoked by uid 500); 16 Dec 2014 13:23:44 -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 93980 invoked by uid 99); 16 Dec 2014 13:23:43 -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:23:43 +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 andraschko.thomas@gmail.com designates 209.85.223.181 as permitted sender) Received: from [209.85.223.181] (HELO mail-ie0-f181.google.com) (209.85.223.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Dec 2014 13:23:17 +0000 Received: by mail-ie0-f181.google.com with SMTP id tp5so12784239ieb.40 for ; Tue, 16 Dec 2014 05:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4HdN5cvAszYBS4LJw9tUpjm5d8Y5UOKMIB2z79vaYMM=; b=CphZ/vc1gxM1emXKVoy+55QeUoPGMhVPe9WT5iQGAxSX+XGzbpvR29LJPDec2FZ8kf 77GQRHRt6/f/rqt3BZl5ywm1lkNTe8gbcQlnGIFRCtnRgUJm9NsMAcQkjbTUJbTRqBv6 +g3yub0Lbeblls0Skz5QS1y+U08/uVlygzyjbgkvUkSkaW6LKqYbGEBbVAl4EwQ8K9Cv 3Z2neWgXeSxYIF1DUmiuChcCua4+tJfvZlz4OEIiEf8htZdcLRckYxcq1QregbnT4pdw pywFw/Cqn2vyqtRHcZCRYudGM75Ydc8SrmqSgtGDQf84oopMolJ8D1b0A10SA5Qxj7jK KhXw== MIME-Version: 1.0 X-Received: by 10.43.79.129 with SMTP id zq1mr12701090icb.28.1418736196548; Tue, 16 Dec 2014 05:23:16 -0800 (PST) Received: by 10.107.51.199 with HTTP; Tue, 16 Dec 2014 05:23:16 -0800 (PST) In-Reply-To: References: <548F650E.1030208@aon.at> <74dc19cc8dda40a1abf83e73a84ccac6@calypso.ctp.com> Date: Tue, 16 Dec 2014 14:23:16 +0100 Message-ID: Subject: Re: Data module and serializability in cluster w/ distributable session From: Thomas Andraschko To: users@deltaspike.apache.org Content-Type: multipart/alternative; boundary=001a11332018067f04050a554364 X-Virus-Checked: Checked by ClamAV on apache.org --001a11332018067f04050a554364 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable :D IMO it also doesn't make sense to serialize repositories! 2014-12-16 14:16 GMT+01:00 Thomas Hug : > > 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 hav= e > to inject EMs or use Instance<>. Fixing this properly might require a maj= or > 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 sti= ll > > 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 > SFSB > > or > > > SessionScoped beans with Dependent scoped dependencies on Repositorie= s > > 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 > > > > > > --001a11332018067f04050a554364--