tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis MONTEIRO <>
Subject Re: OpenEJB JUnit JMS
Date Fri, 17 Apr 2009 07:25:54 GMT


If you want to send a message to test your MDB, the best solution is
probably more a stateless than a simple POJO. It allows you to gain
advantage from injection (connection factory and queue for example).

You can download examples from  and have a look on the simple-mdb

There is a Stateless Session Bean (MessagingClientBean) to send and receive


pjh79 wrote:
> Hello, 
> I'm currently using OpenEJB to unit test my stateless session beans
> outside of an app server.  I have a POJO that does a lookup then calls
> each method on the EJB.  
> Now have an MDB which I would like to test.  I figured I would just create
> a message from a POJO and send it to the queue.   However I'm having
> problems figuring out exactly how to do it.  Any suggestions?

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message