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:50:44 +0100

Hi Judy,


Thanks :) I'm just throwing in whatever knowledge I have based on what I
have been doing in the past few years. Glad to be of help. FYI I have
been practising TDD as well, but I'll leave it to Richard to answer your
questions.


Wouter

On Wed, Jan 06, 2010 at 01:43:06AM -0800, Judy Tang wrote:
> 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
>
>
>

-- 
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