dev@glassfish.java.net

Re: How to access Habitat from a Web Application?

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Wed, 21 Oct 2009 10:04:51 -0700

cool

of course you should be able to inject anything which is in the
habitat, use mappedName for the hk2 name.

On Oct 20, 2009, at 6:08 PM, Byron Nevins wrote:

> It worked fantastically well. Thanks!
>
>
> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>