quality@glassfish.java.net

Re: Unit testing EJB modules with GlassFish Embeddable

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Wed, 6 Jan 2010 08:21:48 +0200

Hi Wouter

2010/1/5 Wouter van Reeven <wouter_at_van.reeven.nl>

> Using the next pom.xml I was able to start an EJB 3.1 container, deploy
> a Session bean to it and call a method on it:
>

You pom.xml does not have a
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-api</artifactId>
            <version>6.0</version>
            <scope>provided</scope>
        </dependency>

Where does the 'import javax.ejb.Stateless;' come from for example ?

Your packaging is also 'jar' should that not be 'ejb' ?


regards
Richard