aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes How to create jdbc resources in embedded glassfish container for tests? 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 » Java » EJB and other Java EE Technologies
Reply Bookmark "How to create jdbc resources in embedded glassfish container for tests?" Watch "How to create jdbc resources in embedded glassfish container for tests?" New topic
Author

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

Volodymyr Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 187

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

Joined: Apr 10, 2013
Posts: 1
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create jdbc resources in embedded glassfish container for tests?
 
Similar Threads
javax.persistence.criteria cannot be resolved to a type & project could not be used in the server.
Grave: org/hibernate/proxy/EntityNotFoundDelegate
Can't deploy hibernate/jpa project to Glassfish 3.1
How To USe JPA with Entity Bean in Ejb3.0
nightmare in running sample example from ejb 3 in action