quality@glassfish.java.net

Re: Unit testing EJB modules with GlassFish Embeddable

From: Judy Tang <Judy.J.Tang_at_Sun.COM>
Date: Wed, 06 Jan 2010 01:43:06 -0800

Wow Wouter, you have answers to so many questions. Thanks for the pointers!

Judy

Wouter van Reeven wrote:
> 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
>
>