I am using spring 4, with javax annotations (JSR-330). In maven
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
So I use @Named, @Inject and @Resource from javax.annotation.* from javax.inject.* instead of Spring @Autowire, @Component , ... and spring supports them quite well. Good example at: http://www.mkyong.com/spring3/spring-3-and-jsr-330-inject-and-named-example/
My problem is that I can't have a bean in session scope with javax annotation so I used @Named and spring @Scope: org.springframework.context.annotation.Scope
Can I create a session scope bean by using javax annotations ?!