Return-Path: X-Original-To: apmail-incubator-deltaspike-users-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09A61F4B2 for ; Fri, 10 May 2013 20:24:53 +0000 (UTC) Received: (qmail 22984 invoked by uid 500); 10 May 2013 20:24:53 -0000 Delivered-To: apmail-incubator-deltaspike-users-archive@incubator.apache.org Received: (qmail 22900 invoked by uid 500); 10 May 2013 20:24:52 -0000 Mailing-List: contact deltaspike-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-users@incubator.apache.org Delivered-To: mailing list deltaspike-users@incubator.apache.org Received: (qmail 22891 invoked by uid 99); 10 May 2013 20:24:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 20:24:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FRT_BELOW2 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.beikov@gmail.com designates 209.85.215.169 as permitted sender) Received: from [209.85.215.169] (HELO mail-ea0-f169.google.com) (209.85.215.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 20:24:47 +0000 Received: by mail-ea0-f169.google.com with SMTP id n15so2383847ead.14 for ; Fri, 10 May 2013 13:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=W+JS9tzuzn4w54Qwct5A7FKVluSi0L6/fl0mhQVn62M=; b=sLW0DawcdN9vz3UVe4LFLEMEeABjWnQPnR8oAf8UWGGXyxW3TuO+9xrZT0duow3NBL EPw6dpBbpH8qhbo9p0Qhgt8Qa9Z9ue+eKBOZJgW3Z1hFmA7o33DwLTMIDeaaKL/zciHW BuJmDeAYk7NBiYOG19l4IQEPKngbpJ+1jzbqHxkaOmpZMdIRqxEzKPyCx3I55GIcM70c 24wFlLb6Wz1GQeiw4Xi6u+4Z7PdnBas8/hwwfsbQOsM6R7DquYD3lAfeL2qtIs5MRrcJ GL/GJJJ+svGfpVFNLr6wnMBqmXDNko1JTkx7PKtwiBbDKXmPSzXx/CkDOMDkS5xEPJEB F7kg== X-Received: by 10.14.179.133 with SMTP id h5mr45236646eem.34.1368217466471; Fri, 10 May 2013 13:24:26 -0700 (PDT) Received: from [10.0.0.2] (91-113-100-103.adsl.highway.telekom.at. [91.113.100.103]) by mx.google.com with ESMTPSA id w43sm5633103eeg.14.2013.05.10.13.24.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 10 May 2013 13:24:25 -0700 (PDT) Message-ID: <518D5774.60909@gmail.com> Date: Fri, 10 May 2013 22:24:20 +0200 From: Christian Beikov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: deltaspike-users@incubator.apache.org Subject: BeanManagerProvider polluting logs Content-Type: multipart/alternative; boundary="------------040102060208080509000409" X-Virus-Checked: Checked by ClamAV on apache.org --------------040102060208080509000409 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Hey there, a quick question again. I am facing a problem regarding BeanManagerProvider when deploying my app as EAR with two WARs. The BeanManagerInfo.booted flag seems to be false and therefore it prints like 200 Messages per HTTP Request into my log file. Deltaspike API and Impl are both in EAR/lib. I am using 0.3-incubating. Furthermore I use JBoss AS 7.1.0.Final which comes with Weld 1.1.5 AFAIK. I found two main places where the BeanManagerProvider was excessively requested. One of these places is the constructor of my custom javax.faces.context.ExceptionHandler. Is it a good idea to cache the ExceptionHandler instance in the javax.faces.context.ExceptionHandlerFactory? If it was, that would at least reduce the messages a bit for now. The second place I found to be a heavy user of the BeanManagerProvider.getInstance() method is in a custom BeanLifcycle class for the MessageBundle beans. The code there is mostly from PartialBeanLifecycle(the method which is calling the getInstance() method so often is the createHandlerInstance() method). I only removed some lines that handeled abstract classes etc. It seems that although I defined the Bean to be @ApplicationScoped, it gets created on every access. Maybe I did something wrong in there too? Can anyone help me please? Also see the code I use for the MessageBundle stuff. MessageBundleBeanLifecycle - http://pastebin.com/4g8HyPqG MessageBundleExtension - http://pastebin.com/Gg48VmaZ MessageBundleInvocationHandler - http://pastebin.com/X6eP0FkG CoreConfigSource - http://pastebin.com/utW2CFka CoreClassDeactivator - http://pastebin.com/C11Pu9L1 Finally the @ApplicationScoped and @Named MessageBundle I use - http://pastebin.com/D2kxNmiR Thanks in advance! -- Mit freundlichen Gr��en, ------------------------------------------------------------------------ *Christian Beikov* --------------040102060208080509000409--