quality@glassfish.java.net

Re: Unit testing EJB modules with GlassFish Embeddable

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Wed, 6 Jan 2010 11:56:25 +0200

Hi Wouter

thanks for the explanation.

It would come in handy to write an custom application as a big bundled jar.
You can then tell the user to double click on the jar, and GlassFish is
running, your app is running.

regards
Richard.

2010/1/6 Wouter van Reeven <wouter_at_van.reeven.nl>

> Hi Richard,
>
> On Wed, Jan 06, 2010 at 10:09:20AM +0200, Richard Kolb wrote:
> > > Your packaging is also 'jar' should that not be 'ejb' ?
> >
> > Personally I don't see how the packaging influences running the app.
> > What does a packaging 'ejb' mean?
> >
> >
> > Oh, in your project change <packaging>jar</packaging> to <packaging>ejb</
> > packaging> and bob's your aunty it's a EJB packaging.
>
> according to the Maven documentation, ejb packaging is exactly the same
> as jar packaging, except:
>
> "The plugin doesn't do any EJB specific processing during the generation
> of the jar except for validating the existence of an EJB deployment
> descriptor if the EJB version is 2.0+, but it provides the following
> customization:
>
> * The EJB version to use
> * Generating and customizing an ejb-client"
>
> So, that's why it also worked with jar packaging :-)
>
>
> Greets, Wouter
>
> --
> Lime and limpid green a second scene,
> A fight between the blue you once knew.
> Floating down the sound resounds
> Around the icy waters underground
> [Pink Floyd - Astronomy Domine]
>
> Skype: wvreeven
> Facebook: wvreeven
> Twitter: wvreeven
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>