users@glassfish.java.net

Re: EJB 3.1 Embedded

From: Gregory Gerard <ggerard_at_mac.com>
Date: Sun, 17 Oct 2010 06:25:05 -0700

You should just be running the class either from JUnit or like any other class with main(). The embedded API is so you do not deploy and run the whole container.

Greg

On Oct 17, 2010, at 5:23, glassfish_at_javadesktop.org wrote:

> Hello Alexis,
>
> I have a simple project in Eclipse (Helios), running Ubuntu 10.10 (may be of some importance), that looks like this:
>
> A simple EJB:
>
>
> package com.eugen.java6.ee.ejb31.EmbeddableAPI;
>
> import javax.ejb.Stateless;
>
> @Stateless
> public class Person {
> public String getPersonName(){
> return "SomeName";
> }
> }
>
>
> And the testing code in the previous post. What I do is deploy the whole project (Run As --> Run on Server). Then I run the TestTheEJB class.
>
> Am i doing something wrong?
>
> Thanks,
> Eugene.
> [Message sent by forum member 'wind57']
>
> http://forums.java.net/jive/thread.jspa?messageID=485364
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>