users@glassfish.java.net

Glassfish v3 embedded junit problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 Jan 2010 02:20:45 PST

Hi
I am new to glassfish and started a simple application using netbeans and Oracle as database.
While my web app works fine, it uses an EJB session bean to insert entities in database with JPA, I am not able to make my junit test run sucessfully.
My test class was generated by netbeans.
The ejb session bean method that is doing the insert, does nothing when running in embedded glassfish.
My EJB has also a find method that works fine in Junit as long as I insert manually records in the table.
To me it looks like embedded glassfish is not doing commits.
Is there some additional configuration required for embedded ?

Thanks
Huguette
[Message sent by forum member 'hmoser' (huguette68_at_yahoo.com)]

http://forums.java.net/jive/thread.jspa?messageID=382115