• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Volodymyr Lysenko
Ranch Hand
Posts: 511
1
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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!
 
Bruno Borges
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic