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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
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: 481
    
    1

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!


True person is moral, false is right!
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
Can't deploy hibernate/jpa project to Glassfish 3.1
javax.persistence.criteria cannot be resolved to a type & project could not be used in the server.
How To USe JPA with Entity Bean in Ejb3.0
nightmare in running sample example from ejb 3 in action
Grave: org/hibernate/proxy/EntityNotFoundDelegate