dev@glassfish.java.net

Re: How to access Habitat from a Web Application?

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Tue, 20 Oct 2009 11:04:07 -0700

Holy cow!

It worked perfectly. Simple and elegant!



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