You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Nicholas Irving <ni...@darkedges.com> on 2005/07/16 08:31:14 UTC
Anybody know how to auto generate an openejb-jar.xml file with Maven?
Hi,
I know this is the wrong place for this, but it seems the logical place, as
either
a) Maven is used to compile Geronimo
b) OpenEJB is a component of Geronimo
c) Developers from apache and OpenEJB may be reading this list
d) All of the above
I have been battling to figure out my development strategy for a new app I
am developing. Previously I have been fortunate enough to use WSAD, but this
project must be run on an open source application server, and since I
believe this to better the better of the bunch, I have chosen Geronimo as
the application server.
I am trying the WTP from eclipse, but that is not complete and only performs
the basics, i.e does not auto generate the openejb-jar.xml file, but does
the ejb-jar.xml through xdoclets. So I thought I would try the maven
approach, as this is a technology I am learning as I am in the process of
porting a large number of ant files for another project. I have figured out
the process for generating all the necessary wars, jars and ears, but not
found a way to generate the openejb-jar file, other than using ant, but
since I cannot find any documentation of how to use the ant version I
thought I would ask around to see if anybody has done anything similair.
Thanks in advance
Nicholas Irving
nirving@darkedges.com
Re: Anybody know how to auto generate an openejb-jar.xml file with Maven?
Posted by ni...@darkedges.com.
Okay my fault.
I assumed (wrongly) that what worked with OpenEJB will work with Geronimo.
Looks like I am going to have to sit down and figure this all out, as until the
reliance on the openejb-jar.xml is removed you still need to create it, and
when you have to mix a manual with automated process to deploy it kinda defeats
the purpose.
I will speak to the guys on the OpenEJB list to see how it works and then see
how I can incorporate it their work to V2 and hopefully get a resolvement. Any
suggestions on where to start regarding V2 of the code?
Quoting David Jencks <dj...@gluecode.com>:
> I assumed since you are asking on a geronimo list you are interested in
> openejb2, the version integrated in geronimo. All your references
> apply to openejb1, which does not work with geronimo. You will get
> better info about openejb1 on the openejb list. I don't know if there
> is any relationship between the plans for the 2 openejb versions.
>
> thanks
> david jencks
>
> On Jul 18, 2005, at 2:09 PM, Nicholas Irving wrote:
>
> > Sorry for the delay in getting back to you all, but was called into
> > work
> > over the weekend to fix a bug that the testing department missed.
> >
> > I am confused.
> > http://www.opensubscriber.com/message/dev@openejb.org/1603012.html
> > talks
> > about some release of an maven task openejb:release. Perhaps I am
> > getting
> > confused with that and some other thing @
> > http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/openejb/
> > ejb/OpenE
> > JBSubTask.html which is the ANT task I have found. Then there is this
> > http://archive.openejb.codehaus.org/user/msg00133.html
> > http://www.mail-archive.com/xdoclet-user@lists.sourceforge.net/
> > msg09170.html
> > http://opensource.atlassian.com/projects/xdoclet/browse/XDT-669
> >
> > and then to add more confusion to the matter
> > http://www.ibiblio.org/maven/xdoclet/jars/ has a jar
> > xdoclet-openejb-module-1.2.2-SNAPSHOT.jar
> >
> > So confused.
> >
> > -----Original Message-----
> > From: Jacek Laskowski [mailto:jlaskowski@apache.org]
> > Sent: 19 July 2005 00:45
> > To: user@geronimo.apache.org
> > Subject: Re: Anybody know how to auto generate an openejb-jar.xml file
> > with
> > Maven?
> >
> > Nicholas Irving wrote:
> >
> >> , but not found a way to generate the openejb-jar file,
> >> other than using ant, but since I cannot find any documentation of how
> >> to use the ant version I thought I would ask around to see if anybody
> >> has done anything similair.
> >
> > IIRC, there's no Ant task or Maven goal to generate openejb-jar.xml
> > file. You will have to do that step manually or if you create such a
> > goal/task, I'll be the first who will ask you to contribute it to
> > Geronimo.
> >
> >> Nicholas Irving
> >
> > Jacek
> >
>
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Re: Anybody know how to auto generate an openejb-jar.xml file with Maven?
Posted by David Jencks <dj...@gluecode.com>.
I assumed since you are asking on a geronimo list you are interested in
openejb2, the version integrated in geronimo. All your references
apply to openejb1, which does not work with geronimo. You will get
better info about openejb1 on the openejb list. I don't know if there
is any relationship between the plans for the 2 openejb versions.
thanks
david jencks
On Jul 18, 2005, at 2:09 PM, Nicholas Irving wrote:
> Sorry for the delay in getting back to you all, but was called into
> work
> over the weekend to fix a bug that the testing department missed.
>
> I am confused.
> http://www.opensubscriber.com/message/dev@openejb.org/1603012.html
> talks
> about some release of an maven task openejb:release. Perhaps I am
> getting
> confused with that and some other thing @
> http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/openejb/
> ejb/OpenE
> JBSubTask.html which is the ANT task I have found. Then there is this
> http://archive.openejb.codehaus.org/user/msg00133.html
> http://www.mail-archive.com/xdoclet-user@lists.sourceforge.net/
> msg09170.html
> http://opensource.atlassian.com/projects/xdoclet/browse/XDT-669
>
> and then to add more confusion to the matter
> http://www.ibiblio.org/maven/xdoclet/jars/ has a jar
> xdoclet-openejb-module-1.2.2-SNAPSHOT.jar
>
> So confused.
>
> -----Original Message-----
> From: Jacek Laskowski [mailto:jlaskowski@apache.org]
> Sent: 19 July 2005 00:45
> To: user@geronimo.apache.org
> Subject: Re: Anybody know how to auto generate an openejb-jar.xml file
> with
> Maven?
>
> Nicholas Irving wrote:
>
>> , but not found a way to generate the openejb-jar file,
>> other than using ant, but since I cannot find any documentation of how
>> to use the ant version I thought I would ask around to see if anybody
>> has done anything similair.
>
> IIRC, there's no Ant task or Maven goal to generate openejb-jar.xml
> file. You will have to do that step manually or if you create such a
> goal/task, I'll be the first who will ask you to contribute it to
> Geronimo.
>
>> Nicholas Irving
>
> Jacek
>
Re: Anybody know how to auto generate an openejb-jar.xml file with
Maven?
Posted by Jacek Laskowski <jl...@apache.org>.
Nicholas Irving wrote:
> I am confused.
> http://www.opensubscriber.com/message/dev@openejb.org/1603012.html talks
> about some release of an maven task openejb:release. Perhaps I am getting
> confused with that and some other thing @
> http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/openejb/ejb/OpenE
> JBSubTask.html which is the ANT task I have found. Then there is this
> http://archive.openejb.codehaus.org/user/msg00133.html
> http://www.mail-archive.com/xdoclet-user@lists.sourceforge.net/msg09170.html
> http://opensource.atlassian.com/projects/xdoclet/browse/XDT-669
>
> and then to add more confusion to the matter
> http://www.ibiblio.org/maven/xdoclet/jars/ has a jar
> xdoclet-openejb-module-1.2.2-SNAPSHOT.jar
Awesome! I didn't remember about the plugin, but the nice thing about
open source is that if you don't have a solution you do it yourself or
look around for possible solutions. It seems you're very lucky - you've
found what you was looking for!
I'd be glad to hear your achievements with the plugin. I'd even created
a new page in OpenEJB Wiki -
http://docs.codehaus.org/display/OPENEJB/XDoclet+plugin - where you
could describe what the plugin is and it is not. Some use cases would be
of help, too.
Reply-set to user@openejb.org mailing list.
>Nicholas Irving
Jacek
RE: Anybody know how to auto generate an openejb-jar.xml file with Maven?
Posted by Nicholas Irving <ni...@darkedges.com>.
Sorry for the delay in getting back to you all, but was called into work
over the weekend to fix a bug that the testing department missed.
I am confused.
http://www.opensubscriber.com/message/dev@openejb.org/1603012.html talks
about some release of an maven task openejb:release. Perhaps I am getting
confused with that and some other thing @
http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/openejb/ejb/OpenE
JBSubTask.html which is the ANT task I have found. Then there is this
http://archive.openejb.codehaus.org/user/msg00133.html
http://www.mail-archive.com/xdoclet-user@lists.sourceforge.net/msg09170.html
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-669
and then to add more confusion to the matter
http://www.ibiblio.org/maven/xdoclet/jars/ has a jar
xdoclet-openejb-module-1.2.2-SNAPSHOT.jar
So confused.
-----Original Message-----
From: Jacek Laskowski [mailto:jlaskowski@apache.org]
Sent: 19 July 2005 00:45
To: user@geronimo.apache.org
Subject: Re: Anybody know how to auto generate an openejb-jar.xml file with
Maven?
Nicholas Irving wrote:
> , but not found a way to generate the openejb-jar file,
> other than using ant, but since I cannot find any documentation of how
> to use the ant version I thought I would ask around to see if anybody
> has done anything similair.
IIRC, there's no Ant task or Maven goal to generate openejb-jar.xml
file. You will have to do that step manually or if you create such a
goal/task, I'll be the first who will ask you to contribute it to Geronimo.
> Nicholas Irving
Jacek
Re: Anybody know how to auto generate an openejb-jar.xml file with
Maven?
Posted by Jacek Laskowski <jl...@apache.org>.
Nicholas Irving wrote:
> , but not found a way to generate the openejb-jar file,
> other than using ant, but since I cannot find any documentation of how
> to use the ant version I thought I would ask around to see if anybody
> has done anything similair.
IIRC, there's no Ant task or Maven goal to generate openejb-jar.xml
file. You will have to do that step manually or if you create such a
goal/task, I'll be the first who will ask you to contribute it to Geronimo.
> Nicholas Irving
Jacek
Re: Anybody know how to auto generate an openejb-jar.xml file with Maven?
Posted by David Jencks <dj...@gluecode.com>.
You need more info, and hence an openejb-jar section in your plan, for
mdbs, cmp mapping, corba, and usually ejb web services.
Packing the vendor specific plan in the application is not really
recommended with j2ee 1.4: for an ear usually it is clearer to have a
single external plan with a section for each ejb module, or for a
standalone ejb module an external plan following the openejb-jar.xsd.
Some people have talked about writing an xdoclet 1 plugin but AFAIK
there is nothing available yet.
david jencks
On Jul 18, 2005, at 12:40 PM, Bruce Snyder wrote:
> On 7/16/05, Nicholas Irving <ni...@darkedges.com> wrote:
>
>> I am trying the WTP from eclipse, but that is not complete and only
>> performs
>> the basics, i.e does not auto generate the openejb-jar.xml file, but
>> does
>> the ejb-jar.xml through xdoclets. So I thought I would try the maven
>> approach, as this is a technology I am learning as I am in the
>> process of
>> porting a large number of ant files for another project. I have
>> figured out
>> the process for generating all the necessary wars, jars and ears, but
>> not
>> found a way to generate the openejb-jar file, other than using ant,
>> but
>> since I cannot find any documentation of how to use the ant version I
>> thought I would ask around to see if anybody has done anything
>> similair.
>
> I may be wrong, but IIRC, as long as the EJB jar file is spec
> compliant (i.e., contains an ejb-jar.xml), the Geronimo J2EE deployer
> will handle it. Please, someone correct me if I'm wrong.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> The Castor Project
> http://www.castor.org/
>
> Apache Geronimo
> http://geronimo.apache.org/
>
Re: Anybody know how to auto generate an openejb-jar.xml file with Maven?
Posted by Bruce Snyder <br...@gmail.com>.
On 7/16/05, Nicholas Irving <ni...@darkedges.com> wrote:
> I am trying the WTP from eclipse, but that is not complete and only performs
> the basics, i.e does not auto generate the openejb-jar.xml file, but does
> the ejb-jar.xml through xdoclets. So I thought I would try the maven
> approach, as this is a technology I am learning as I am in the process of
> porting a large number of ant files for another project. I have figured out
> the process for generating all the necessary wars, jars and ears, but not
> found a way to generate the openejb-jar file, other than using ant, but
> since I cannot find any documentation of how to use the ant version I
> thought I would ask around to see if anybody has done anything similair.
I may be wrong, but IIRC, as long as the EJB jar file is spec
compliant (i.e., contains an ejb-jar.xml), the Geronimo J2EE deployer
will handle it. Please, someone correct me if I'm wrong.
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://geronimo.apache.org/