Can I use @Inject annotation in my Spring application, when I will deploy my application in Appserver that doesn’t support Java EE 6?
@Inject is introduced in Java EE6 and it doesn’t supported by Java EE 5
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you use
@Injectin components managed by Spring (Spring beans) its functionality is implemented by Spring, therefore you don’t need anything else to make it work.@Injectsupport in JavaEE 6 is about components managed by application server (EJBs, etc).