To test an MDB you need a container.

Either wrap as an integration test (probably using FailSafe) and/or, better
yet: Use OpenEJB and plain JUnit for that.

--
-- Aldrin Leal, <[email protected]> / http://www.leal.eng.br/mnemetica/


On Mon, Apr 11, 2011 at 1:16 AM, Andrew Hughes <[email protected]> wrote:

> Howdy,
>
> I want to be able to check that the MDB's created actually execute and
> behave as expected.
>
> For reference, the EE5 tutorial (
> http://download.oracle.com/javaee/5/tutorial/doc/bnbpq.html) covers two
> equivalent "tests" :
>
>   - *Building, Deploying, and Running the simplemessage Application Using
>   NetBeans IDE*
>   - *Building, Deploying, and Running the simplemessage Application Using
>   Ant*
>
> I can't work out how this is best done in Maven (because surprise,
> surprise,
> the NetBean's ant scrips are less than intuitive) and I can't find any doco
> examples on this.
>
> Help would be excellent :)
>
> Cheers.
>

Reply via email to