JSR 299 and JSR 330 in glassfish v3

Source: Internet
Author: User
Tags glassfish

Last month we introduced javaee 6 to include jsr330 and jsr299
. Roger kitain wrote a blog post
Describes how to use jcdi (JSR 299, ex-webbeans) in glassfish ). InArticleThe following example shows how to use JSR 2.0/JSR 299 for encoding. You will see some annotations that comply with the JSR specifications:@ Inject
,@ Qualifier
,@ Sessionscoped
,@ Applicationscoped
.

 

How can you try this example? I recommend you use netbeans 6.8 M1
And the latest glassfish V3 version (for example, build Web 62 ).
), Create a javaee 6 web application, and take the exampleCodeYou do not need to perform any other steps.

 

If you want to learn more about the progress of JSR 299/JSR 330, please follow this blog
And Roger's blog
.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.