users@glassfish.java.net

Re: How do I start an embedded GFv3 preview server in b56?

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Sun, 26 Jul 2009 23:50:10 -0700

On Jul 26, 2009, at 8:34 AM, glassfish_at_javadesktop.org wrote:

> Thanks, Jerome. I'll give it a try. I am trying to set up unit
> tests, along the lines of http://www.adam-bien.com/roller/abien/entry/embedding_glassfish_v3_in_unit
> .
>
> Right now, I am struggling with how to get access to the managed
> beans and session beans in my application. I suppose I can get at
> the session beans with JNDI. But how do I get a reference to a JSF
> managed bean? A JSR 299 web bean?
we have not hooked up 299 with embedded yet, hopefully this week,
>
> Or is Adam's approach not workable? I suppose I can run the unit
> test in the server, kicked off by a servlet, and then kick off the
> servlet somehow. Ok, how?
yes this is a very good approach, I really don't know which one I like
the best. Considering how unfinished embedded still is, I would
certainly consider it a more workable approach.

jerome

>
> Thanks,
>
> Cay
> [Message sent by forum member 'cayhorstmann' (cayhorstmann)]
>
> http://forums.java.net/jive/thread.jspa?messageID=357600
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>