I'm not hugely familiar with JOnAS and GenIC, so keep that in mind.
Perhaps someone who is already doing this will pipe up?

First off, you should be able to write a jonas-genic-maven-plugin
without a lot of trouble. They already have Ant tasks set up for it,
so you can either call the existing Ant tasks or just write Java code
to call GenIC directly (my preference).

Then I'd probably make another module that depends on this ejb module
and have it run genic on the jar created by your ejb module. The
output will be another ejb jar. Or you might be able to integrate the
GenIC call into the original EJB module, dunno.

Wayne

On 9/20/07, houzecl <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
>
> I need some advice about handling EJB2 generation within Maven.
> Our Application Server is JOnAS
>
> For various reasons we are not going to use xdoclet.
>
> Therefeore we plan to use an home made plugin to generate: home, remote, and
> bean classes
> (from ejb-jar.xml and some specific templates associated to Jonas and to our
> standards).
> I understand that:
> - this plugin can be bound to the generate-sources lifecycle on a project
> where the associated POM has an "ejb" packaging
> - if I do an mvn build on this project I will get an ejb.jar (including
> previous generated classes) and eventually an ejb-client.jar
>
> Now, JOnAS provides a utility called GenIC that generates stub and skeletons
>  and includes them in a "final" ejb-jar.jar (it looks like it makes it from
> the existing ejb.jar and project sources)
>
> so, where and how should I activate this GenIC utility so that I finally get
> ejb.jar and ejb-client fit for JOnAS
>
> Thanks for any hint
>
> Christian-Luc
>
>
> --
> View this message in context: 
> http://www.nabble.com/EJB-Generation-within-Maven---Application-Server-is-JOnAS-tf4488894s177.html#a12801737
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to