dev@glassfish.java.net

javax.inject implementation part of webbeans

From: Sahoo <Sahoo_at_Sun.COM>
Date: Tue, 06 Oct 2009 23:20:20 +0530

This means javax.inject can't be used without webbeans and its
dependencies which includes EJB and Servlet I guess. Is it OK? I thought
javax.inject was supposed to be usable on Java SE [1], no?

Thanks,
Sahoo

[1] http://jcp.org/en/jsr/detail?id=330

Roger Kitain wrote:
> No. WebBeans (Weld) itself implements 330.
>
> -roger
>
> Sahoo wrote:
>> Barbara,
>>
>> Will WebBeans project produce separate jars containing JSR330
>> implementation classes? If yes, then we need to separate JSR330
>> implementation details from webbeans-osgi-bundle.
>>
>> Thanks,
>> Sahoo
>>
>> Barbara Louis wrote:
>>> JSR 330 will be integrated in by web beans. That is, web beans will
>>> implement jsr 330. There will be no separate integration for jsr 330
>>> in GlassFish.
>>>
>>> Thanks,
>>> Barbara
>>>
>>> Sahoo wrote:
>>>> We do not prefer to have separate OSGi bundle for APIs, as we
>>>> believe APIs are very much part of implementation bundle. When
>>>> WebBeans was integrated in GFv3, javax.inject was part of JSR 299.
>>>> So, javax.inject classes are part of webbeans bundle. Subsequently,
>>>> those APIs have been moved to JSR 330. Whoever integrates JSR 330
>>>> will have to do necessary adjustment. I am happy to answer any
>>>> queries in this regard.
>>>>
>>>> Thanks,
>>>> Sahoo
>>>>
>>>> Ludovic Champenois wrote:
>>>>> See the diff. Maybe Sahoo or the webbeans owners can comment while
>>>>> Jane is on vacation?
>>>>>
>>>>> I am not sure about the correct version for javax.inject but this
>>>>> new dependency is necessary to add the javax.inject apis into the
>>>>> javaee-api jars, necessary to produced the stripped api jar (only
>>>>> apis, no impl)...
>>>>> Currently, the build of this stripped jar is failing with missing
>>>>> Scope class.
>>>>>
>>>>> Related question: why the java.inject APIs are inside
>>>>> webbeans-osgi-bundle.jar and not in a separate javax.... jar?
>>>>> I need to refresh the posted stripped api jars asap (they are used
>>>>> for Maven EE 6 projects, and currently not functioning)...
>>>>>
>>>>> # Following Index: paths are relative to:
>>>>> /Users/ludo/acvs/v3/javaee-api/javax.javaee
>>>>> # This patch can be applied using context Tools: Patch action on
>>>>> respective folder.
>>>>> # It uses platform neutral UTF-8 encoding and \n newlines.
>>>>> # Above lines and this line are ignored by the patching process.
>>>>> Index: pom.xml
>>>>> --- pom.xml Base (BASE)
>>>>> +++ pom.xml Locally Modified (Based On LOCAL)
>>>>> @@ -265,6 +265,12 @@
>>>>> <optional>true</optional>
>>>>> </dependency>
>>>>> <dependency>
>>>>> + <groupId>javax.inject</groupId>
>>>>> + <artifactId>inject-api</artifactId>
>>>>> + <version>1.0.0-PRD</version>
>>>>> + <optional>true</optional>
>>>>> + </dependency>
>>>>> + <dependency>
>>>>> <groupId>com.sun.messaging.mq</groupId>
>>>>> <artifactId>jaxm-api</artifactId>
>>>>> <version>4.3</version>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>