dev@glassfish.java.net

Re: How to access Habitat from a Web Application?

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Mon, 19 Oct 2009 15:33:19 -0700

yes, use Java EE injection !

@Resource
Habitat habitat;

let me know if that does not work (or work !).

jerome

On Oct 19, 2009, at 2:55 PM, Byron Nevins wrote:

> I want to use an object that is inside the Habitat in V3 -- from my
> web app. I don't need to @Inject -- I just want to get a reference
> to the Habitat.
> Has anyone done this? Any tips/ideas?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>