• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How to create jdbc resources in embedded glassfish container for tests?

 
Ranch Hand
Posts: 514
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!

I can't anyway pass line
container = javax.ejb.embeddable.EJBContainer.createEJBContainer();
I stopped at the following exception:

I believe that I should create jdbc connection pool and jdbc resource for embedded ejb glassfish container?
Does anybody know how to create jdbc connection pool and jdbc resource for embedded ejb glassfish container?

Thank you!
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please read my blog post about how to correctly configure the DataSource for Maven Embedded GlassFish:

https://blogs.oracle.com/brunoborges/entry/configure_datasources_for_maven_embedded
 
reply
    Bookmark Topic Watch Topic
  • New Topic