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 1C01510E67 for ; Tue, 13 Jan 2015 02:42:18 +0000 (UTC) Received: (qmail 73055 invoked by uid 500); 13 Jan 2015 02:42:19 -0000 Delivered-To: apmail-deltaspike-users-archive@deltaspike.apache.org Received: (qmail 73018 invoked by uid 500); 13 Jan 2015 02:42:19 -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 73006 invoked by uid 99); 13 Jan 2015 02:42:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2015 02:42:19 +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 (athena.apache.org: domain of deven.phillips@gmail.com designates 209.85.213.182 as permitted sender) Received: from [209.85.213.182] (HELO mail-ig0-f182.google.com) (209.85.213.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2015 02:42:14 +0000 Received: by mail-ig0-f182.google.com with SMTP id hn15so1035037igb.3 for ; Mon, 12 Jan 2015 18:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Bz578AG3/OfVYwA1OdOUyUWNfr4GpI4vuXERTI66nF4=; b=KsDVD0JkH2AXlZM2vT7stXEYU92lv6CmB/FZmT3eI+h4HKUnNWJimjaqbk+hCgTCpL VS0816cXZgciCLp2nDrfC3P7zBzLCw/pFAAJCx0HJ8NuJkymlaZai3Dv5GntA/jzxcqm 5PoYdMZo9PDj8am+q2Ok+tAGixfkO8v+/pTtXixewyJG8/ZApLU9zQm5kzfNp7UJBz5t xfRXU6xpfS5vBri1aQxSuSmdAa45ccQkeqo5IxG6/XVO5KEJG1b2x8aSosqb/Qv/JY7V n0P/QmacdMQuvy3UMoEoZYjTSnQk7XeyCvRJOdhH3UQbwumAgWSoJsRB8w7mx7tWzAc2 KNUw== MIME-Version: 1.0 X-Received: by 10.50.55.5 with SMTP id n5mr18785396igp.31.1421116869195; Mon, 12 Jan 2015 18:41:09 -0800 (PST) Received: by 10.107.14.12 with HTTP; Mon, 12 Jan 2015 18:41:09 -0800 (PST) Date: Mon, 12 Jan 2015 21:41:09 -0500 Message-ID: Subject: Jetty WebSocketClient Causing Scope Issues . . . I think... From: Deven Phillips To: users@deltaspike.apache.org Content-Type: multipart/alternative; boundary=e89a8ffbae6d2c3e80050c7f8e59 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ffbae6d2c3e80050c7f8e59 Content-Type: text/plain; charset=UTF-8 So, I am trying to use DeltaSpike in an application which also uses Jetty's WebSocket API (for a client connection)... The problem I appear to be having is that when Jetty fires up separate threads for the WebSocket client/handlers, they are not being properly scoped for CDI... When I try to do certain operations with injected resources, I get: UpdateSocket:199 - WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped I read a post on StackOverflow which suggests that for each new thread I need to create a request scope. http://stackoverflow.com/questions/26631093/no-active-contexts-for-scope-type-javax-enterprise-context-requestscoped-when-in How do I do that in a way that is not WELD specific? Thanks in advance! Deven --e89a8ffbae6d2c3e80050c7f8e59--