File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Junit testing using glassfish embedded EJBContainer Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply Bookmark "Junit testing using glassfish embedded EJBContainer" Watch "Junit testing using glassfish embedded EJBContainer" New topic
Author

Junit testing using glassfish embedded EJBContainer

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
Hi.

Has anyone successfully tested messaging using glassfish's embedded container on version 3.1 or 3.01?
As I was building my project, I could test my session beans and persistence but my tests stopped working the moment I introduced queues. Basically the testsuite fails to create the EJB container (EJBContainer.createEJBContainer()) and gives the following error:

No EJBContainer provider available, Returned null from createEJBContainer call

To test my theory I deleted the Producer and Consumer and removed the xml references on the project and the tests work. Is there an issue with queues/topics when testing with the embedded container OR has anyone successfully tested this.
Maybe there are additional properties to be passed to EJBContainer.createEJBContainer() when dealing with queues???

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Junit testing using glassfish embedded EJBContainer
 
Similar Threads
Locking down a computer for testing
[Digester] End event threw exception Problem for CactusStrutsTestCase
too much time to write tests
EJB module unit test initialization error
unit testing struts?