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 50E2A200B17 for ; Tue, 21 Jun 2016 14:10:42 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4F6D8160A4F; Tue, 21 Jun 2016 12:10:42 +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 99D22160A36 for ; Tue, 21 Jun 2016 14:10:41 +0200 (CEST) Received: (qmail 55606 invoked by uid 500); 21 Jun 2016 12:10:40 -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 55593 invoked by uid 99); 21 Jun 2016 12:10:40 -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; Tue, 21 Jun 2016 12:10:40 +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 1C897180628 for ; Tue, 21 Jun 2016 12:10:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 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_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RGmks0uv9pDC for ; Tue, 21 Jun 2016 12:10:39 +0000 (UTC) Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id DA0B65F484 for ; Tue, 21 Jun 2016 12:10:38 +0000 (UTC) Received: by mail-ob0-f171.google.com with SMTP id ru5so18890016obc.1 for ; Tue, 21 Jun 2016 05:10:38 -0700 (PDT) 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; bh=uNfVwrPVlCJCUXJAGW/W0G22ON9vVaReApISVUzxzec=; b=xt5aTcWpJPYWr2LXu+89ceeJDU+diaG6JyjIBLVW33pZJII3rcwXu7TjLovcM2+6V0 TQw5sLsYgNJPmO2sXHTtpTzpywQ76Sp89waAANEkZ5T5s0WCT1YrYNfCq1dW1UBrN6rb hGKGSIwrQmfiDQL+GFOB7yg77XUxjwWOgct7kSYRakDn9AkKMaiNqgjnfFztl//cAKhi 5H7TJuB4iLIiRiEfblE5hrBfC11L6TCFQj1vh8/Jvs7fmljQSkkbq0pFtf1eFP4hFQTK GGI7Wc0l1JgbY3dZ2uIx2et83FTNSlJ1I+93aRRL4uBnG21mawu15Vux73BD61rvCndK d1YQ== 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; bh=uNfVwrPVlCJCUXJAGW/W0G22ON9vVaReApISVUzxzec=; b=Hs3bcxI2L2zdyVogoZkhfOhPnkms5dkN+nxUDjpfiwYGzi+2Rz/R6IN2P/3vHoyWPZ njzmteapkkk42Ld1pqGwTe/3cotlpqmbL4r9uZ89anxC9lhsmqm6xElYXRUGob7IQNne 7PaiIJRls18aWzZf8DjpgFIUVAHCRuz7GP+oPuqSJU3TAr91jsSxgTfs7hX61DqXdD0B R/HJNrjKp+KoQA8elODulfXhGzoLUfWUdW+VxxfOKCqcvQfYLLgWxlxCjWt2FM5lRS8J +fHs+h5syCGRqI74ir7QPLAuALaIiV8l3IAz/GPh3VbtWuLQEZnrfcqhiZpZVx1zk2ox rFPA== X-Gm-Message-State: ALyK8tJCTGEWsX0Y80mF0Vv0sWoyuGWpszLNaxPlX+SSI4czoQrmziVAUV3oAa+oZRJama3fxJy/pP9OmvmxRA== X-Received: by 10.157.47.248 with SMTP id b53mr14979902otd.59.1466511031613; Tue, 21 Jun 2016 05:10:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.49.133 with HTTP; Tue, 21 Jun 2016 05:10:31 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?B?S2FybCBLaWxkw6lu?= Date: Tue, 21 Jun 2016 14:10:31 +0200 Message-ID: Subject: Re: Is it truly impossible to lookup @ViewScoped etc with BeanProvider? To: "users@deltaspike.apache.org" Content-Type: multipart/alternative; boundary=001a113a8376193cdc0535c8b548 archived-at: Tue, 21 Jun 2016 12:10:42 -0000 --001a113a8376193cdc0535c8b548 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable So it is impossible then :-) The problem is that several slow things needs to be done from a JSF Bean. I can't async it because the service the bean calls is @ViewAccessScoped and stateful. I have a Bean that I want to start the thread from the Bean it is not a problem but when I create a new thread this thread is also disconnected from my Bean and it fails to look it up... Will take me ages to fix this project properly so desperate times calls for strange hacks :-) On 21 June 2016 at 12:39, Thomas Andraschko wrote: > BeanProvider should work fine with any scope. > Of course you can't receive a viewscoped bean from another thread/request= . > > 2016-06-21 11:52 GMT+02:00 Karl Kild=C3=A9n : > > > I have a RequestScoped Bean that needs to split the workload basically > and > > the thread needs to lookup using the Bean that starts the thread so to > > speak... > > > > On 21 June 2016 at 11:24, Karl Kild=C3=A9n wrot= e: > > > > > Hello! > > > > > > If a project made a mistake in the architecture and needs to lookup J= SF > > > scoped instances from the BeanProvider, is this possible in any way > > > (however hacky?). > > > > > > The problem is that since the request thread is needed to lookup the > > > instance it does not work from a thread. > > > > > > cheers > > > > > > --001a113a8376193cdc0535c8b548--