Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Junit testing using glassfish embedded EJBContainer

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic