Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 3999 invoked from network); 6 Dec 2007 08:24:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Dec 2007 08:24:05 -0000 Received: (qmail 31323 invoked by uid 500); 6 Dec 2007 08:23:53 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 31280 invoked by uid 500); 6 Dec 2007 08:23:52 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 31269 invoked by uid 99); 6 Dec 2007 08:23:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2007 00:23:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.blevins@visi.com designates 208.42.176.213 as permitted sender) Received: from [208.42.176.213] (HELO g2host.com) (208.42.176.213) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2007 08:23:29 +0000 Received: from [76.167.141.63] (account dblevins@visi.com HELO [192.168.42.22]) by mailfront2.g2host.com (CommuniGate Pro SMTP 5.1.10) with ESMTPSA id 27222350 for dev@geronimo.apache.org; Thu, 06 Dec 2007 02:23:19 -0600 Message-Id: From: David Blevins To: dev@geronimo.apache.org In-Reply-To: <5da94e5a0712050826l7be8ccd7x88c93043f75d4a05@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 v915) Subject: Re: How to get a meta-data complete ejb-jar.xml from an EJB jar? Date: Thu, 6 Dec 2007 00:23:14 -0800 References: <5da94e5a0712050826l7be8ccd7x88c93043f75d4a05@mail.gmail.com> X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org On Dec 5, 2007, at 8:26 AM, Shiva Kumar H R wrote: > I am currently working on an Admin Console wizard to auto-generate > openejb-jar.xml http://issues.apache.org/jira/browse/GERONIMO-3432 > and one problem where I am currently stuck is "given an EJB jar how > do I get it's meta-data complete ejb-jar.xml?" > > I have some code in "Plan Creator" portlet of Admin Console which > can process a web-app and provide it's meta-data complete web.xml. http://www.mail-archive.com/dev@geronimo.apache.org/msg47965.html > shows this code and how it was developed. This code is however > insufficient for discovering EJB annotations. Tim told on irc http://servlet.uwyn.com/drone/log/bevinbot/geronimo/20071205 > that for EJBs a lot of the annotation processing is done in openejb > side -- not geronimo. > > Any further hints/help? The metadata complete tree is available in the EjbModule object created by the builders. You'd want org.apache.geronimo.openejb.deployment.EjbModule.getSpecDD() -David