Thanks to both of you.

The OpenEJB solution seems very clean, the
openejb-examples-3.1.4.tar.gz<http://www.apache.org/dyn/closer.cgi/openejb/3.1.4/openejb-examples-3.1.4.tar.gz>
 and 
openejb-examples-3.1.4.zip<http://www.apache.org/dyn/closer.cgi/openejb/3.1.4/openejb-examples-3.1.4.zip>
 from http://openejb.apache.org/download.html contain "simple-mdb" and
"simple-mdb-with-descriptor" examples that are both maven projects.

This might be enough for me to get integration tests working, however...

I would also like to persue embedded container deployment (such as Glassfish
and/or JBoss... or ?????). I am not sure if http://www.jboss.org/arquillian is
a good solution or not, I'll look at this when the openejb solution is
working.


Thanks heaps!


On Mon, Apr 11, 2011 at 3:53 PM, Aldrin Leal <[email protected]> wrote:

> 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