Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 81641 invoked from network); 6 Dec 2007 13:04:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Dec 2007 13:04:38 -0000 Received: (qmail 39295 invoked by uid 500); 6 Dec 2007 13:04:25 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 39239 invoked by uid 500); 6 Dec 2007 13:04:25 -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 39228 invoked by uid 99); 6 Dec 2007 13:04:25 -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 05:04:25 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of shivahr@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Dec 2007 13:04:02 +0000 Received: by py-out-1112.google.com with SMTP id u52so561771pyb for ; Thu, 06 Dec 2007 05:04:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=IVgG+aYS7qTutmEzRI0KW2Vo23lsiKwy8euxPNMz7Z4=; b=Z2A5KnzRi8CDZGV/BxyPnXJlpYqy4qe/FzwQhlDQKstbZ45toFGne1fFdaFoOEi9+42VcAbper7mSTeRKPjn0A6JxDdMFkEjqYifnWpM8lY7nqoFeHDGHoRpPOOKStgD5DYZvCgD32idKl1j9CTJmpz+LtEocXWf9DVHpu87Lw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=HqVwpWiXbKpdewzJvsFPDE/9sTfENIspC/d5Dwg8gBs/fZLXCTJx9COynJEFU0VzyJcKpBjTWQ43HIBnEF9v+Vb0RMujep9wVFudmwwQA3hu9dASTeO0r5ta9p1LTGbD7FA2aRR+JsZCanHLD9TVCxRLJrwj+iDaqdSPMXzxBg4= Received: by 10.65.51.4 with SMTP id d4mr3876705qbk.1196946243854; Thu, 06 Dec 2007 05:04:03 -0800 (PST) Received: by 10.65.203.12 with HTTP; Thu, 6 Dec 2007 05:04:03 -0800 (PST) Message-ID: <5da94e5a0712060504m4347f01dqeaba70e4dbad3c93@mail.gmail.com> Date: Thu, 6 Dec 2007 18:34:03 +0530 From: "Shiva Kumar H R" To: dev@geronimo.apache.org Subject: Re: How to get a meta-data complete ejb-jar.xml from an EJB jar? In-Reply-To: <475731AB.50402@jrg.me.uk> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6157_11588798.1196946243844" References: <5da94e5a0712050826l7be8ccd7x88c93043f75d4a05@mail.gmail.com> <475731AB.50402@jrg.me.uk> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_6157_11588798.1196946243844 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for the hints Jon. On Dec 6, 2007 4:48 AM, Jonathan Gallimore wrote: > Shiva, > > I don't know if this is any help, but I'm currently working on some code > to generate annotations based on a JAXB tree generated from an ejb-jar.xml. > As I understand it, OpenEJB does all its annotation scraping and processing > in org.apache.openejb.config.AnnotationDeployer ( > https://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/AnnotationDeployer.java) > - I'm effectively doing the reverse of what this class does to generate the > annotations :-) > > Hope that helps - apologies if its not what you're after. > > Jon > > > Shiva Kumar H R wrote: > > I am currently working on an Admin Console wizard to auto-generateopenejb-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 irchttp://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? > > > > > -- Thanks, Shiva ------=_Part_6157_11588798.1196946243844 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thanks for the hints Jon.

On Dec 6, 2007 4:48 AM, Jonathan Gallimore <jon@jrg.me.uk> wrote:
Shiva,

I don't know if this is any help, but I'm currently working on some code to generate annotations based on a JAXB tree generated from an ejb-jar.xml. As I understand it, OpenEJB does all its annotation scraping and processing in org.apache.openejb.config.AnnotationDeployer (https://svn.apache.org/repos/asf/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/AnnotationDeployer.java ) - I'm effectively doing the reverse of what this class does to generate the annotations :-)

Hope that helps - apologies if its not what you're after.

Jon


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?

  




--
Thanks,
Shiva ------=_Part_6157_11588798.1196946243844--