users@glassfish.java.net

Re: Glassfish v3 embedded junit problem

From: Alexis Moussine-Pouchkine <alexis.mp_at_sun.com>
Date: Thu, 21 Jan 2010 11:37:57 +0100

You'd need to share some (error) log or setup details (packaging, startup) before we can help out.
NetBeans 6.8 should do most of the setup work for you (mainly adding a JAR to you classpath for running tests).
-Alexis

On 21 janv. 2010, at 11:20, glassfish_at_javadesktop.org wrote:

> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>