• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Load Persistent

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

With Netbeans and Glassfish, I have created some stateless sessions beans that use some entites via JPA.
Everything works fine. But now I want to do some entitties tests with JUnit (so out of the container).
So , I have write this little code and add a lot of jars lib in my testing project


When I start my JUnit tets, lots of things happened. Binding seems ok, but after that I have this exception:

There is something around JNDI, but I do no know what to do ...
How can I create an EntityManagerFactory ?
Do you have any idea ?
Thanks,

Olivier
 
Olivier Scalbert
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for the title of my post.
Should have been:
how to create an EntityManagerFactory from JUnit !

Sorry for that, I do not know if it is possible to change this
 
reply
    Bookmark Topic Watch Topic
  • New Topic