Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 73022 invoked from network); 6 May 2009 07:33:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 May 2009 07:33:22 -0000 Received: (qmail 30291 invoked by uid 500); 6 May 2009 07:33:21 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 30250 invoked by uid 500); 6 May 2009 07:33:21 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 30242 invoked by uid 99); 6 May 2009 07:33:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2009 07:33:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.136.44.63] (HELO smtp108.prem.mail.sp1.yahoo.com) (98.136.44.63) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 06 May 2009 07:33:11 +0000 Received: (qmail 78636 invoked from network); 6 May 2009 07:32:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=ol+nzNGIznH2nz9tDIuG1/Zin553LIFdp2GGjdlt4jw880OLO3nleFK7/PZFle1sk4iM/XIyxR0f2ropkd2IQL5HcwZdedGhvQiAQOiG/yUjVdTMML9aUEKcFKA6jz9x77+aEEfw+Ru7gNdYkAeyCr/GbONJabQZHsNH2e6HI6w= ; Received: from unknown (HELO ?10.11.55.41?) (david_jencks@76.76.148.215 with plain) by smtp108.prem.mail.sp1.yahoo.com with SMTP; 6 May 2009 07:32:49 -0000 X-YMail-OSG: xDSEAvoVM1m69L4am4xTiXFNxKgHZE4uWiiERNjktB2gOx_7cJpVDBMkGp4J38o3uvjr.Kqa23B_Fsk4JX6jOpUJvzwZUA7nXBtj0OfHqQRaEKXvsAw807zP047kor3F0bCDKYBbZ.GL0XSZgFLQAN8Ro_d3XNzzr5Xk49lEDULxPb5yGacBrlbd1kSgy.mHJspUpf4t_BIsf1JoK0BQXUlm60uwpkuMAjEx1qePvJoYC7TcLg8O_vdJJqoY_3LezprAV79dSznyGfyPSpOUcaDOqPDzx.S_uXX3tDXOC2FJHH3OcEIPF_pBXdlv35BkkgP24rnM9O1zFocOrXImnoFBMs0XHQ-- X-Yahoo-Newman-Property: ymail-3 Message-Id: <6F1D35C3-3191-425C-BD44-D287AC013F94@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <7d6453040905060009u17ae872ci8c5a9fe1f3bb6c75@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: JMS MBean in geronimo Date: Wed, 6 May 2009 00:32:48 -0700 References: <7d6453040905060009u17ae872ci8c5a9fe1f3bb6c75@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On May 6, 2009, at 12:09 AM, Xasima Xirohata wrote: > Hi. What is the simplest way to develop and expose mbeans (gbean) to > monitor a particular EJB 3.0 Bean. > > Could we, for example, perform this in a manner (*) that use > @Management, @Depends annotations. (*) > http://mastertheboss.com/en/jboss-server/44-jboss-mbeans-pojo.html?tmpl=component&print=1&page= It's possible you misunderstood this article. This article does not explain anything about any relationship between mbeans and ejbs. Rather it shows the proprietary jboss annotations that can be used to generate the mbean descriptor from java code. The annotations are vaguely similar to some javaee 5 annotations but don't actually relate jmx and javaee. In geronimo trunk we have annotations for gbeans that perform a similar function. There's some documentation here: http://cwiki.apache.org/GMOxDEV/gbean-annotations.html While gbeans were developed to be a more DI framework-friendly component model than mbeans, every gbean is exposed as an mbean as well. > > > Actually it is seems that we have no wiki article in geronimo -2.2 on > the developing and exposing MBeans (Gbean) with EJB 3.0 assistance. > Although the same example (as by link above) could be realized by > @Resource injection of the target EJB to gbean + placing dependency in > EJB to transfer their lifecycle methods to target GBean. Would someone > hint how to perform this in most elegant way? I don't really have any idea what you are trying to accomplish here and as noted above AFAICT the article you cite doesn't describe anything like this in jboss. Is there a specific functionality you are looking for? If you want to avoid session bean pooling perhaps the ejb 3.1 singleton ejbs would be useful? thanks david jencks > > > -- > Best regards, > ~ Xasima Xirohata ~