quality@glassfish.java.net

Re: Unit testing EJB modules with GlassFish Embeddable

From: Wouter van Reeven <wouter_at_van.reeven.nl>
Date: Wed, 6 Jan 2010 10:35:30 +0100

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