tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pjh79 <huene...@gmail.com>
Subject Re: OpenEJB JUnit JMS
Date Fri, 17 Apr 2009 11:21:38 GMT

As I currently have it, my pojo has junit @Test annotations.  Will making
this a stateless session bean interrupt junits execution at all?  



Jean-Louis MONTEIRO wrote:
> 
> Hello,
> 
> 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  http://openejb.apache.org/download.html
> http://openejb.apache.org/download.html  and have a look on the simple-mdb
> sample.
> 
> There is a Stateless Session Bean (MessagingClientBean) to send and
> receive messages.
> 
> Jean-Louis
> 
> 
> 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: http://www.nabble.com/OpenEJB-JUnit-JMS-tp23088560p23095651.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message